github.com/batchcorp/thrift-iterator@v0.0.0-20220918180557-4c4a158fc6e9/test/level_2/struct_complex_test/TestObject.go (about) 1 package struct_complex_test 2 3 type SubType struct { 4 A int32 `thrift:"a,1"` 5 } 6 7 type Enum int32 8 9 const ( 10 Enum_A Enum = 1 11 12 Enum_B Enum = 2 13 ) 14 15 type Int int32 16 17 type TestObject struct { 18 Av bool `thrift:"av,0"` 19 Ap *bool `thrift:"ap,2,optional"` 20 Bv int8 `thrift:"bv,3"` 21 Bp *int8 `thrift:"bp,4,optional"` 22 Cv int8 `thrift:"cv,5"` 23 Cp *int8 `thrift:"cp,6,optional"` 24 Dv int16 `thrift:"dv,7"` 25 Dp *int16 `thrift:"dp,8,optional"` 26 Ev int32 `thrift:"ev,9"` 27 Ep *int32 `thrift:"ep,10,optional"` 28 Fv int64 `thrift:"fv,11"` 29 Fp *int64 `thrift:"fp,12,optional"` 30 Gv float64 `thrift:"gv,13"` 31 Gp *float64 `thrift:"gp,14,optional"` 32 Hv string `thrift:"hv,15"` 33 Hp *string `thrift:"hp,16,optional"` 34 Iv []byte `thrift:"iv,17,optional"` 35 Ip *[]byte `thrift:"ip,18,optional"` 36 Jv []string `thrift:"jv,19,optional"` 37 Jp *[]string `thrift:"jp,20,optional"` 38 Kv map[string]bool `thrift:"kv,21,optional"` 39 Kp *map[string]bool `thrift:"kp,22,optional"` 40 Lv map[int32]SubType `thrift:"lv,23,optional"` 41 Lp *map[int32]SubType `thrift:"lp,24,optional"` 42 Mv map[int32]map[int32]string `thrift:"mv,25,optional"` 43 Mp *map[int32]map[int32]string `thrift:"mp,26,optional"` 44 Nv [][]string `thrift:"nv,27,optional"` 45 Np *[][]string `thrift:"np,28,optional"` 46 Ov Int `thrift:"ov,29"` 47 Op *Int `thrift:"op,30,optional"` 48 Pv Enum `thrift:"pv,31"` 49 Pp *Enum `thrift:"pp,32,optional"` 50 Qv map[int32][]string `thrift:"qv,33,optional"` 51 Qp *map[int32][]string `thrift:"qp,34,optional"` 52 Rv []map[string][]map[string]int32 `thrift:"rv,35,optional"` 53 Rp *[]map[string][]map[string]int32 `thrift:"rp,36,optional"` 54 }