github.com/theQRL/go-zond@v0.1.1/rlp/rlpgen/testdata/optional.in.txt (about) 1 // -*- mode: go -*- 2 3 package test 4 5 type Aux struct { 6 A uint64 7 } 8 9 type Test struct { 10 Uint64 uint64 `rlp:"optional"` 11 Pointer *uint64 `rlp:"optional"` 12 String string `rlp:"optional"` 13 Slice []uint64 `rlp:"optional"` 14 Array [3]byte `rlp:"optional"` 15 NamedStruct Aux `rlp:"optional"` 16 AnonStruct struct{ A string } `rlp:"optional"` 17 }