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

     1  // Package blank is a go/doc test for the handling of _. See issue ...
     2  PACKAGE blank
     3  
     4  IMPORTPATH
     5  	testdata/blank
     6  
     7  IMPORTS
     8  	os
     9  
    10  FILENAMES
    11  	testdata/blank.go
    12  
    13  CONSTANTS
    14  	// T constants counting from unexported constants.
    15  	const (
    16  		tweedledee	T	= iota
    17  		tweedledum
    18  		C1
    19  		C2
    20  		alice
    21  		C3
    22  		redQueen	int	= iota
    23  		C4
    24  	)
    25  
    26  	// Constants with a single type that is not propagated.
    27  	const (
    28  		zero		os.FileMode	= 0
    29  		Default				= 0644
    30  		Useless				= 0312
    31  		WideOpen			= 0777
    32  	)
    33  
    34  	// Constants with an imported type that is propagated.
    35  	const (
    36  		zero	os.FileMode	= 0
    37  		M1
    38  		M2
    39  		M3
    40  	)
    41  
    42  	// Package constants.
    43  	const (
    44  		_	int	= iota
    45  		I1
    46  		I2
    47  	)
    48  
    49  	// Unexported constants counting from blank iota. See issue 9615.
    50  	const (
    51  		_	= iota
    52  		one	= iota + 1
    53  	)
    54  
    55  
    56  VARIABLES
    57  	//
    58  	var _ = T(55)
    59  
    60  
    61  FUNCTIONS
    62  	//
    63  	func _()
    64  
    65  
    66  TYPES
    67  	// S has a padding field.
    68  	type S struct {
    69  		H	uint32
    70  		_	uint8
    71  		A	uint8
    72  	}
    73  
    74  	//
    75  	type T int
    76  
    77  	// T constants counting from a blank constant.
    78  	const (
    79  		_	T	= iota
    80  		T1
    81  		T2
    82  	)
    83  
    84  

View as plain text