diff options
Diffstat (limited to 'vendor/github.com/lunixbochs/struc/struc_test.go')
-rw-r--r-- | vendor/github.com/lunixbochs/struc/struc_test.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/vendor/github.com/lunixbochs/struc/struc_test.go b/vendor/github.com/lunixbochs/struc/struc_test.go index 939c3e3..4b50707 100644 --- a/vendor/github.com/lunixbochs/struc/struc_test.go +++ b/vendor/github.com/lunixbochs/struc/struc_test.go @@ -55,6 +55,8 @@ type Example struct { NestedSize int `struc:"sizeof=NestedA"` // 00 00 00 02 NestedA []Nested // [00 00 00 03, 00 00 00 04] + Skip int `struc:"skip"` + CustomTypeSize Int3 `struc:"sizeof=CustomTypeSizeArr"` // 00 00 00 04 CustomTypeSizeArr []byte // "ABCD" } @@ -71,6 +73,7 @@ var reference = &Example{ 4, []byte("5678"), Nested{1}, &Nested{2}, &five, 6, []Nested{{3}, {4}, {5}, {6}, {7}, {8}}, + 0, Int3(4), []byte("ABCD"), } |