Files
avo/examples/args/args.go
2019-01-13 10:12:52 -08:00

25 lines
493 B
Go

package args
// Struct is a struct containing various datatypes, to help demonstrate struct field access.
type Struct struct {
Byte byte
Int8 int8
Uint16 uint16
Int32 int32
Uint64 uint64
Float32 float32
Float64 float64
String string
Slice []Sub
Array [5]Sub
Complex64 complex64
Complex128 complex128
}
// Sub is a sub-struct of Struct, to demonstrate nested datastructure accesses.
type Sub struct {
A uint64
B [3]byte
C uint16
}