github.com/klaytn/klaytn@v1.12.1/rlp/rlpgen/testdata/nil.in.txt (about)

     1  // -*- mode: go -*-
     2  
     3  package test
     4  
     5  type Aux struct{
     6      A uint32
     7  }
     8  
     9  type Test struct{
    10      Uint8 *byte `rlp:"nil"`
    11      Uint8List *byte `rlp:"nilList"`
    12  
    13      Uint32 *uint32 `rlp:"nil"`
    14      Uint32List *uint32 `rlp:"nilList"`
    15  
    16      Uint64 *uint64 `rlp:"nil"`
    17      Uint64List *uint64 `rlp:"nilList"`
    18  
    19      String *string `rlp:"nil"`
    20      StringList *string `rlp:"nilList"`
    21  
    22      ByteArray *[3]byte `rlp:"nil"`
    23      ByteArrayList *[3]byte `rlp:"nilList"`
    24  
    25      ByteSlice *[]byte `rlp:"nil"`
    26      ByteSliceList *[]byte `rlp:"nilList"`
    27  
    28      Struct *Aux `rlp:"nil"`
    29      StructString *Aux `rlp:"nilString"`
    30  }