github.com/shijuvar/go@v0.0.0-20141209052335-e8f13700b70c/src/go/doc/testdata/blank.go (about) 1 // Copyright 2014 The Go Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style 3 // license that can be found in the LICENSE file. 4 5 // Package blank is a go/doc test for the handling of _. 6 // See issue 5397. 7 package blank 8 9 type T int 10 11 // T constants. 12 const ( 13 _ T = iota 14 T1 15 T2 16 ) 17 18 // Package constants. 19 const ( 20 _ int = iota 21 I1 22 I2 23 ) 24 25 // Blanks not in doc output: 26 27 // S has a padding field. 28 type S struct { 29 H uint32 30 _ uint8 31 A uint8 32 } 33 34 func _() {} 35 36 type _ T 37 38 var _ = T(55)