...

Text file src/go/doc/testdata/b.1.golden

Documentation: go/doc/testdata

     1// 
     2PACKAGE b
     3
     4IMPORTPATH
     5	testdata/b
     6
     7IMPORTS
     8	a
     9
    10FILENAMES
    11	testdata/b.go
    12
    13CONSTANTS
    14	// 
    15	const Pi = 3.14	// Pi
    16
    17
    18VARIABLES
    19	// 
    20	var MaxInt int	// MaxInt
    21
    22
    23FUNCTIONS
    24	// 
    25	func F(x int) int
    26
    27	// Always under the package functions list. 
    28	func NotAFactory() int
    29
    30
    31TYPES
    32	// 
    33	type T struct{}	// T
    34
    35	// 
    36	var V T	// v
    37
    38	// 
    39	func (x *T) M()
    40
    41	// Should only appear if AllDecls is set. 
    42	type comparable struct{}	// overrides a predeclared type comparable
    43
    44	// Associated with comparable type if AllDecls is set. 
    45	func ComparableFactory() comparable
    46
    47	// 
    48	type notExported int
    49
    50	// 
    51	const (
    52		C1	notExported	= iota
    53		C2
    54		c3
    55		C4
    56		C5
    57	)
    58
    59	// 
    60	const C notExported = 0
    61
    62	// 
    63	var (
    64		U1, U2, u3, U4, U5	notExported
    65		u6			notExported
    66		U7			notExported	= 7
    67	)
    68
    69	// 
    70	var V notExported
    71
    72	// 
    73	var V1, V2, v3, V4, V5 notExported
    74
    75	// 
    76	func F1() notExported
    77
    78	// 
    79	func f2() notExported
    80
    81	// Should only appear if AllDecls is set. 
    82	type uint struct{}	// overrides a predeclared type uint
    83
    84	// Associated with uint type if AllDecls is set. 
    85	func UintFactory() uint
    86
    87	// Associated with uint type if AllDecls is set. 
    88	func uintFactory() uint
    89

View as plain text