Versions in this module Expand all Collapse all v1 v1.2.9 Aug 17, 2022 Changes in this version + var Generators []Generator + func RegisterGenerator(g Generator) + type AssemblyScript struct + func (*AssemblyScript) Finish(output io.Writer, buffer io.Reader) error + func (gen *AssemblyScript) Extensions() []string + func (gen *AssemblyScript) Language() string + func (gen *AssemblyScript) Options() map[string]string + func (gen *AssemblyScript) Start(file *kmparser.Content) (compiler Compiler, err error) + type C struct + func (*C) Finish(output io.Writer, buffer io.Reader) error + func (gen *C) Extensions() []string + func (gen *C) Language() string + func (gen *C) Options() map[string]string + func (gen *C) Start(file *kmparser.Content) (compiler Compiler, err error) + type Compiler struct + Modules []string + Template []*template.Template + func NewTemplate(modules []string, funcs TemplateFunctions, pattern ...string) (compiler Compiler) + type DotNet struct + func (*DotNet) Finish(output io.Writer, buffer io.Reader) error + func (gen *DotNet) Extensions() []string + func (gen *DotNet) Language() string + func (gen *DotNet) Options() map[string]string + func (gen *DotNet) Start(file *kmparser.Content) (compiler Compiler, err error) + type Generator interface + Extensions func() []string + Finish func(output io.Writer, buffer io.Reader) (err error) + Language func() string + Options func() map[string]string + Start func(file *kmparser.Content) (compiler Compiler, err error) + func AssemblyScriptGenerator() Generator + func CGenerator() Generator + func DotNetGenerator() Generator + func GolangGenerator() Generator + func OdinGenerator() Generator + func SwiftGenerator() Generator + func ZigGenerator() Generator + type Golang struct + func (gen *Golang) Extensions() []string + func (gen *Golang) Finish(output io.Writer, buffer io.Reader) error + func (gen *Golang) Language() string + func (gen *Golang) Options() map[string]string + func (gen *Golang) Start(file *kmparser.Content) (compiler Compiler, err error) + type Odin struct + func (*Odin) Finish(output io.Writer, buffer io.Reader) error + func (gen *Odin) Extensions() []string + func (gen *Odin) Language() string + func (gen *Odin) Options() map[string]string + func (gen *Odin) Start(file *kmparser.Content) (compiler Compiler, err error) + type Swift struct + func (*Swift) Finish(output io.Writer, buffer io.Reader) error + func (gen *Swift) Extensions() []string + func (gen *Swift) Language() string + func (gen *Swift) Options() map[string]string + func (gen *Swift) Start(file *kmparser.Content) (compiler Compiler, err error) + type TemplateData struct + type TemplateFunctions struct + FromTags func(s string) string + ToDefault func(typ kmparser.Type) string + ToPlainDefault func(typ kmparser.Type) string + ToPlainType func(typ kmparser.Type) string + ToPlainTypeView func(typ kmparser.Type) string + ToType func(typ kmparser.Type) string + ToTypeView func(typ kmparser.Type) string + func NewTemplateFunctions(gen Generator, content *kmparser.Content) TemplateFunctions + type Zig struct + func (*Zig) Finish(output io.Writer, buffer io.Reader) error + func (gen *Zig) Extensions() []string + func (gen *Zig) Language() string + func (gen *Zig) Options() map[string]string + func (gen *Zig) Start(file *kmparser.Content) (compiler Compiler, err error) v1.0.0 May 17, 2022