github.com/cockroachdb/tools@v0.0.0-20230222021103-a6d27438930d/go/analysis/passes/fieldalignment/testdata/src/a/a.go.golden (about) 1 package a 2 3 type Good struct { 4 y int32 5 x byte 6 z byte 7 } 8 9 type Bad struct { 10 y int32 11 x byte 12 z byte 13 } 14 15 type ZeroGood struct { 16 a [0]byte 17 b uint32 18 } 19 20 type ZeroBad struct { 21 b [0]byte 22 a uint32 23 } 24 25 type NoNameGood struct { 26 Good 27 y int32 28 x byte 29 z byte 30 } 31 32 type NoNameBad struct { 33 Good 34 y int32 35 x byte 36 z byte 37 } 38 39 type WithComments struct { 40 b [0]byte 41 a uint32 42 }