Documentation ¶
Index ¶
- Variables
- func ExecuteTemplate(tmpl *template.Template, name string, path string, data TemplateData) error
- func Generate(dir string, fileName string, wasm []byte, initFunction string) error
- type TemplateClass
- type TemplateClassConstructor
- type TemplateClassMethod
- type TemplateClassProperty
- type TemplateConstant
- type TemplateData
- type TemplateEnum
- type TemplateEnumValue
- type TemplateSymbol
Constants ¶
This section is empty.
Variables ¶
View Source
var TemplateFunctions = template.FuncMap{ "lower": strings.ToLower, }
Functions ¶
func ExecuteTemplate ¶
Types ¶
type TemplateClass ¶
type TemplateClass struct { Name string GoName string Constructors []TemplateClassConstructor Properties []TemplateClassProperty StaticProperties []TemplateClassProperty Methods []TemplateClassMethod StaticMethods []TemplateClassMethod }
type TemplateClassMethod ¶
type TemplateClassProperty ¶
type TemplateConstant ¶
type TemplateData ¶
type TemplateData struct { Pkg string PkgPath string Enums []TemplateEnum Symbols []TemplateSymbol Constants []TemplateConstant Classes []TemplateClass }
type TemplateEnum ¶
type TemplateEnum struct { Name string GoName string GoType string Values []TemplateEnumValue }
type TemplateEnumValue ¶
Click to show internal directories.
Click to hide internal directories.