| 1 | package args |
| 2 | |
| 3 | // Struct is a struct containing various datatypes, to help demonstrate struct field access. |
| 4 | type Struct struct { |
| 5 | Byte byte |
| 6 | Int8 int8 |
| 7 | Uint16 uint16 |
| 8 | Int32 int32 |
| 9 | Uint64 uint64 |
| 10 | Float32 float32 |
| 11 | Float64 float64 |
| 12 | String string |
| 13 | Slice []Sub |
| 14 | Array [5]Sub |
| 15 | Complex64 complex64 |
| 16 | Complex128 complex128 |
| 17 | } |
| 18 | |
| 19 | // Sub is a sub-struct of Struct, to demonstrate nested datastructure accesses. |
| 20 | type Sub struct { |
| 21 | A uint64 |
| 22 | B [3]byte |
| 23 | C uint16 |
| 24 | } |