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