...

Text file src/cmd/gofmt/testdata/tabs.golden

Documentation: cmd/gofmt/testdata

     1// Copyright 2022 The Go Authors. All rights reserved.
     2// Use of this source code is governed by a BSD-style
     3// license that can be found in the LICENSE file.
     4
     5//gofmt
     6
     7package main
     8
     9var _ = []struct {
    10	S       string
    11	Integer int
    12}{
    13	{
    14		S:       "Hello World",
    15		Integer: 42,
    16	},
    17	{
    18		S:       "\t",
    19		Integer: 42,
    20	},
    21	{
    22		S:       "	", // an actual <tab>
    23		Integer: 42,
    24	},
    25	{
    26		S:       `	`, // an actual <tab>
    27		Integer: 42,
    28	},
    29	{
    30		S:       "\u0009",
    31		Integer: 42,
    32	},
    33}

View as plain text