Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseTypeDef ¶
func ParseTypeDef(typ *TypeDef, opts ...FieldParserOpt) (gentypes.ValRep, error)
Types ¶
type FieldDef ¶
type FieldDef struct {
// contains filtered or unexported fields
}
FieldDef represents a field of the intermediate marshaling type.
type FieldParser ¶
type FieldParser struct {
// contains filtered or unexported fields
}
type FieldParserOpt ¶
type FieldParserOpt func(*FieldParser)
func WithDisableDelegation ¶
func WithDisableDelegation() FieldParserOpt
type GoPathScoper ¶
type GoPathScoper struct {
// contains filtered or unexported fields
}
func NewGoPathScoper ¶
func NewGoPathScoper(packageName string) (*GoPathScoper, error)
func (*GoPathScoper) Path ¶
func (pp *GoPathScoper) Path() string
func (*GoPathScoper) Scope ¶
func (pp *GoPathScoper) Scope() *types.Scope
func (*GoPathScoper) TypeDefSourceCode ¶
func (pp *GoPathScoper) TypeDefSourceCode(defs []*TypeDef) ([]byte, error)
type PathScoper ¶
type SSZDimension ¶
func (*SSZDimension) IsList ¶
func (dim *SSZDimension) IsList() bool
func (*SSZDimension) IsVector ¶
func (dim *SSZDimension) IsVector() bool
func (*SSZDimension) ListLen ¶
func (dim *SSZDimension) ListLen() int
func (*SSZDimension) VectorLen ¶
func (dim *SSZDimension) VectorLen() int
type SSZListBounds ¶
type TagParser ¶
type TagParser struct {
// contains filtered or unexported fields
}
func (TagParser) GetSSZTags ¶
type TypeDef ¶
type TypeDef struct { Name string PackageName string IsStruct bool Fields []*FieldDef // contains filtered or unexported fields }
TypeDef represents the intermediate struct type used during marshaling. This is the input data to all the Go code templates.
type VirtualFile ¶
type VirtualFile struct {
// contains filtered or unexported fields
}
type VirtualPathScoper ¶
type VirtualPathScoper struct {
// contains filtered or unexported fields
}
func NewVirtualPathScoper ¶
func NewVirtualPathScoper(pkgName string, vfs ...VirtualFile) (*VirtualPathScoper, error)
func (*VirtualPathScoper) Path ¶
func (vps *VirtualPathScoper) Path() string
func (*VirtualPathScoper) Scope ¶
func (vps *VirtualPathScoper) Scope() *types.Scope
Source Files ¶
Click to show internal directories.
Click to hide internal directories.