binary
binary copied to clipboard
Nested types and arrays in struct
Hi! Is it possible to do nested types and arrays in structs like
type nested struct {
A uint8 `bitfield:"4"`
B uint32 `bitfield:"32"`
}
type mainstruct struct {
data0 uint32 `word:"32"`
data1 uint32 `word:"32"`
nested nested
nestedArray [4]nested
}