github.com/chrislusf/greenpack@v3.7.1-0.20170911073826-ad5bd10b7c47+incompatible/testdata/my2.go (about) 1 package testdata 2 3 // gotta test the tests too! 4 //go:generate greenpack -unexported 5 6 type u struct { 7 m map[string]*Tr `zid:"0"` 8 9 // track which job we are up to. 10 s string `zid:"1"` 11 n int64 `zid:"2"` 12 } 13 14 type Tr struct { 15 U string `zid:"0"` 16 et *Tr `msg:"-"` 17 18 Nt int `zid:"1"` 19 20 Snot map[string]bool `zid:"2"` 21 Notyet map[string]bool `zid:"3"` 22 23 Setm []*inn `zid:"4"` 24 } 25 26 type inn struct { 27 j map[string]bool `zid:"0"` 28 e int64 `zid:"1"` 29 }