Black Lives Matter. Support the Equal Justice Initiative.

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

Documentation: go/doc/testdata

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

View as plain text