...

Text file src/go/printer/testdata/complit.x

Documentation: go/printer/testdata

     1package complit
     2
     3var (
     4	// Multi-line declarations
     5	V1	= T{
     6		F1: "hello",
     7		// contains filtered or unexported fields
     8	}
     9	V2	= T{
    10
    11		F1: "hello",
    12		// contains filtered or unexported fields
    13	}
    14	V3	= T{
    15		F1:	"hello",
    16		F2: T2{
    17			A: "world",
    18			// contains filtered or unexported fields
    19		},
    20		// contains filtered or unexported fields
    21	}
    22	V4	= T{
    23		// contains filtered or unexported fields
    24	}
    25
    26	// Single-line declarations
    27	V5	= T{F1: "hello", /* contains filtered or unexported fields */}
    28	V6	= T{F1: "hello", /* contains filtered or unexported fields */}
    29	V7	= T{/* contains filtered or unexported fields */}
    30
    31	// Mixed-mode declarations
    32	V8	= T{
    33		F1:	"hello",
    34		F3:	"world",
    35		// contains filtered or unexported fields
    36	}
    37	V9	= T{
    38		F1: "hello",
    39		// contains filtered or unexported fields
    40	}
    41	V10	= T{
    42		F1:	"hello",
    43
    44		F4:	"world",
    45		// contains filtered or unexported fields
    46	}
    47
    48	// Other miscellaneous declarations
    49	V11	= T{
    50		t{
    51			A: "world",
    52			// contains filtered or unexported fields
    53		},
    54		// contains filtered or unexported fields
    55	}
    56	V12	= T{
    57		F1:	make(chan int),
    58
    59		F3:	make(map[int]string),
    60		// contains filtered or unexported fields
    61	}
    62)

View as plain text