Versions in this module Expand all Collapse all v0 v0.1.0 Feb 21, 2026 Changes in this version + const DefaultHeader + var GraphTemplates = []GraphTemplate + var TypeTemplates = []TypeTemplate + type Config struct + Header string + Hooks []Hook + Package string + Target string + Templates []*Template + type Field struct + func (f *Field) GetterName() string + func (f *Field) GoType() string + func (f *Field) IsBool() bool + func (f *Field) IsBytes() bool + func (f *Field) IsNumeric() bool + func (f *Field) IsString() bool + func (f *Field) IsVarLen() bool + func (f *Field) ReadCall() string + func (f *Field) SetterName() string + func (f *Field) TestValue() string + func (f *Field) TypeConstant() int + func (f *Field) WriteCall() string + func (f *Field) WriteCallRec() string + type GenerateFunc func(*Graph) error + func (f GenerateFunc) Generate(g *Graph) error + type Generator interface + Generate func(*Graph) error + type Graph struct + Nodes []*Type + func NewGraph(c *Config, schemas []StructSchema) (*Graph, error) + func (g *Graph) Gen() error + type GraphTemplate struct + Format string + Name string + Skip func(*Graph) bool + type Hook func(Generator) Generator + type StructSchema struct + Fields []mmapforge.FieldDef + Name string + Package string + SchemaVersion uint32 + func ParseFile(path string) ([]StructSchema, error) + type Template struct + FuncMap template.FuncMap + func MustParse(t *Template, err error) *Template + func NewTemplate(name string) *Template + func (t *Template) AddParseTree(name string, tree *parse.Tree) (*Template, error) + func (t *Template) Funcs(funcMap template.FuncMap) *Template + func (t *Template) Parse(text string) (*Template, error) + func (t *Template) ParseFS(fsys fs.FS, patterns ...string) (*Template, error) + func (t *Template) ParseFiles(filenames ...string) (*Template, error) + func (t *Template) SkipIf(cond func(*Graph) bool) *Template + type Type struct + Fields []*Field + Name string + Package string + RecordSize uint32 + SchemaVersion uint32 + func (t *Type) HasBytesField() bool + func (t *Type) HasStringField() bool + func (t *Type) HasVarLenField() bool + func (t *Type) Header() string + func (t *Type) Label() string + func (t *Type) LayoutFuncName() string + func (t *Type) NewStoreFuncName() string + func (t *Type) OpenStoreFuncName() string + func (t *Type) Receiver() string + func (t *Type) RecordName() string + func (t *Type) StoreName() string + type TypeTemplate struct + Cond func(*Type) bool + Format func(*Type) string + Name string