Skip to content

Nested types and arrays in struct #2

@siredmar

Description

@siredmar

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
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions