Documentation ¶
Index ¶
- Constants
- func MethodBuilderList() map[string]TagPrompter
- func RootStructName() *jen.Statement
- type Context
- type FieldType
- type StrucTag
- func (tag *StrucTag) BinaryToType(goType string, n *jen.Statement) *jen.Statement
- func (t *StrucTag) ElementBitLen() int
- func (t *StrucTag) FieldBitLen() int
- func (t *StrucTag) FieldType() FieldType
- func (t *StrucTag) GetNewLoopVar() (*jen.Statement, *jen.Statement)
- func (tag *StrucTag) GetSize() (*jen.Statement, error)
- func (tag *StrucTag) Pack() (*jen.Statement, error)
- func (t StrucTag) String() string
- func (tag *StrucTag) TypeToBinary(goType string, n *jen.Statement) *jen.Statement
- func (tag *StrucTag) Unpack() (*jen.Statement, error)
- type TagPrompter
Constants ¶
View Source
const ( MarshalBinary directionT = iota UnmarshalBinary Size )
Variables ¶
This section is empty.
Functions ¶
func MethodBuilderList ¶
func MethodBuilderList() map[string]TagPrompter
func RootStructName ¶
Types ¶
type StrucTag ¶
type StrucTag struct { Type string Order binary.ByteOrder Skip bool // contains filtered or unexported fields }
func NewStrucTag ¶
func (*StrucTag) BinaryToType ¶
func (*StrucTag) ElementBitLen ¶ added in v0.9.1
func (*StrucTag) FieldBitLen ¶ added in v0.9.1
Returns size in Bit for the Field occupies in binary representation
func (*StrucTag) GetNewLoopVar ¶
Gets a new unique named loop variable name for use in the context of serializing this struct
func (*StrucTag) TypeToBinary ¶
Click to show internal directories.
Click to hide internal directories.