|
1 | 1 | package tester |
2 | 2 |
|
3 | 3 | type BasicTestData struct { |
4 | | - Vstring string `yomo:"0x10"` |
5 | | - Vint32 int32 `yomo:"0x11"` |
6 | | - Vint64 int64 `yomo:"0x12"` |
7 | | - Vuint32 uint32 `yomo:"0x13"` |
8 | | - Vuint64 uint64 `yomo:"0x14"` |
9 | | - Vfloat32 float32 `yomo:"0x15"` |
10 | | - Vfloat64 float64 `yomo:"0x16"` |
11 | | - Vbool bool `yomo:"0x17"` |
| 4 | + Vstring string `y3:"0x10"` |
| 5 | + Vint32 int32 `y3:"0x11"` |
| 6 | + Vint64 int64 `y3:"0x12"` |
| 7 | + Vuint32 uint32 `y3:"0x13"` |
| 8 | + Vuint64 uint64 `y3:"0x14"` |
| 9 | + Vfloat32 float32 `y3:"0x15"` |
| 10 | + Vfloat64 float64 `y3:"0x16"` |
| 11 | + Vbool bool `y3:"0x17"` |
12 | 12 | } |
13 | 13 |
|
14 | 14 | type EmbeddedTestData struct { |
15 | | - BasicTestData `yomo:"0x1a"` |
16 | | - Vaction string `yomo:"0x1b"` |
| 15 | + BasicTestData `y3:"0x1a"` |
| 16 | + Vaction string `y3:"0x1b"` |
17 | 17 | } |
18 | 18 |
|
19 | 19 | type EmbeddedMoreTestData struct { |
20 | | - EmbeddedTestData `yomo:"0x1c"` |
21 | | - Vanimal string `yomo:"0x1d"` |
| 20 | + EmbeddedTestData `y3:"0x1c"` |
| 21 | + Vanimal string `y3:"0x1d"` |
22 | 22 | } |
23 | 23 |
|
24 | 24 | type NamedTestData struct { |
25 | | - Base BasicTestData `yomo:"0x1e"` |
26 | | - Vaction string `yomo:"0x1f"` |
| 25 | + Base BasicTestData `y3:"0x1e"` |
| 26 | + Vaction string `y3:"0x1f"` |
27 | 27 | } |
28 | 28 |
|
29 | 29 | type NamedMoreTestData struct { |
30 | | - MyNest NamedTestData `yomo:"0x2a"` |
31 | | - Vanimal string `yomo:"0x2b"` |
| 30 | + MyNest NamedTestData `y3:"0x2a"` |
| 31 | + Vanimal string `y3:"0x2b"` |
32 | 32 | } |
33 | 33 |
|
34 | 34 | type ArrayTestData struct { |
35 | | - Vfoo string `yomo:"0x20"` |
36 | | - Vbar [2]string `yomo:"0x21"` |
37 | | - Vint32Array [2]int32 `yomo:"0x22"` |
38 | | - Vint64Array [2]int64 `yomo:"0x23"` |
39 | | - Vuint32Array [2]uint32 `yomo:"0x24"` |
40 | | - Vuint64Array [2]uint64 `yomo:"0x25"` |
41 | | - Vfloat32Array [2]float32 `yomo:"0x26"` |
42 | | - Vfloat64Array [2]float64 `yomo:"0x27"` |
| 35 | + Vfoo string `y3:"0x20"` |
| 36 | + Vbar [2]string `y3:"0x21"` |
| 37 | + Vint32Array [2]int32 `y3:"0x22"` |
| 38 | + Vint64Array [2]int64 `y3:"0x23"` |
| 39 | + Vuint32Array [2]uint32 `y3:"0x24"` |
| 40 | + Vuint64Array [2]uint64 `y3:"0x25"` |
| 41 | + Vfloat32Array [2]float32 `y3:"0x26"` |
| 42 | + Vfloat64Array [2]float64 `y3:"0x27"` |
43 | 43 | } |
44 | 44 |
|
45 | 45 | type SliceTestData struct { |
46 | | - Vfoo string `yomo:"0x30"` |
47 | | - Vbar []string `yomo:"0x31"` |
48 | | - Vint32Slice []int32 `yomo:"0x32"` |
49 | | - Vint64Slice []int64 `yomo:"0x33"` |
50 | | - Vuint32Slice []uint32 `yomo:"0x34"` |
51 | | - Vuint64Slice []uint64 `yomo:"0x35"` |
52 | | - Vfloat32Slice []float32 `yomo:"0x36"` |
53 | | - Vfloat64Slice []float64 `yomo:"0x37"` |
| 46 | + Vfoo string `y3:"0x30"` |
| 47 | + Vbar []string `y3:"0x31"` |
| 48 | + Vint32Slice []int32 `y3:"0x32"` |
| 49 | + Vint64Slice []int64 `y3:"0x33"` |
| 50 | + Vuint32Slice []uint32 `y3:"0x34"` |
| 51 | + Vuint64Slice []uint64 `y3:"0x35"` |
| 52 | + Vfloat32Slice []float32 `y3:"0x36"` |
| 53 | + Vfloat64Slice []float64 `y3:"0x37"` |
54 | 54 | } |
55 | 55 |
|
56 | 56 | type SliceStructTestData struct { |
57 | | - Vstring string `yomo:"0x2e"` |
58 | | - BaseList []BasicTestData `yomo:"0x2f"` |
59 | | - NamedMoreList []NamedMoreTestData `yomo:"0x3a"` |
60 | | - EmbeddedMoreList []EmbeddedMoreTestData `yomo:"0x3b"` |
| 57 | + Vstring string `y3:"0x2e"` |
| 58 | + BaseList []BasicTestData `y3:"0x2f"` |
| 59 | + NamedMoreList []NamedMoreTestData `y3:"0x3a"` |
| 60 | + EmbeddedMoreList []EmbeddedMoreTestData `y3:"0x3b"` |
61 | 61 | } |
62 | 62 |
|
63 | 63 | type ArrayStructTestData struct { |
64 | | - Vstring string `yomo:"0x2e"` |
65 | | - BaseList [2]BasicTestData `yomo:"0x2f"` |
66 | | - NamedMoreList [2]NamedMoreTestData `yomo:"0x3a"` |
67 | | - EmbeddedMoreList [2]EmbeddedMoreTestData `yomo:"0x3b"` |
| 64 | + Vstring string `y3:"0x2e"` |
| 65 | + BaseList [2]BasicTestData `y3:"0x2f"` |
| 66 | + NamedMoreList [2]NamedMoreTestData `y3:"0x3a"` |
| 67 | + EmbeddedMoreList [2]EmbeddedMoreTestData `y3:"0x3b"` |
68 | 68 | } |
69 | 69 |
|
70 | 70 | type NestedTestData struct { |
71 | | - SubNested Sub1NestedTestData `yomo:"0x3a"` |
| 71 | + SubNested Sub1NestedTestData `y3:"0x3a"` |
72 | 72 | } |
73 | 73 |
|
74 | 74 | type Sub1NestedTestData struct { |
75 | | - SubNested Sub2NestedTestData `yomo:"0x3b"` |
| 75 | + SubNested Sub2NestedTestData `y3:"0x3b"` |
76 | 76 | } |
77 | 77 |
|
78 | 78 | type Sub2NestedTestData struct { |
79 | | - SubNested Sub3NestedTestData `yomo:"0x3c"` |
| 79 | + SubNested Sub3NestedTestData `y3:"0x3c"` |
80 | 80 | } |
81 | 81 |
|
82 | 82 | type Sub3NestedTestData struct { |
83 | | - BasicList []BasicTestData `yomo:"0x3d"` |
| 83 | + BasicList []BasicTestData `y3:"0x3d"` |
84 | 84 | } |
0 commit comments