github.com/yanyiwu/go@v0.0.0-20150106053140-03d6637dbb7f/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 42 VARIABLES 43 // 44 var _ = T(55) 45 46 47 FUNCTIONS 48 // 49 func _() 50 51 52 TYPES 53 // S has a padding field. 54 type S struct { 55 H uint32 56 _ uint8 57 A uint8 58 } 59 60 // 61 type T int 62 63 // T constants counting from a blank constant. 64 const ( 65 _ T = iota 66 T1 67 T2 68 ) 69