github.com/q45/go@v0.0.0-20151101211701-a4fb8c13db3f/src/go/doc/testdata/blank.1.golden (about) 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 // Package constants. 27 const ( 28 _ int = iota 29 I1 30 I2 31 ) 32 33 // Constants with an imported type that needs to be propagated. 34 const ( 35 zero os.FileMode = 0 36 Default = 0644 37 Useless = 0312 38 WideOpen = 0777 39 ) 40 41 // Unexported constants counting from blank iota. See issue 9615. 42 const ( 43 _ = iota 44 one = iota + 1 45 ) 46 47 48 VARIABLES 49 // 50 var _ = T(55) 51 52 53 FUNCTIONS 54 // 55 func _() 56 57 58 TYPES 59 // S has a padding field. 60 type S struct { 61 H uint32 62 _ uint8 63 A uint8 64 } 65 66 // 67 type T int 68 69 // T constants counting from a blank constant. 70 const ( 71 _ T = iota 72 T1 73 T2 74 ) 75