Documentation
¶
Index ¶
- type GoGenerator
- func (gen *GoGenerator) Emit(s string)
- func (gen *GoGenerator) EmitDecimalType()
- func (gen *GoGenerator) EmitEnumType(td *sadl.TypeDef)
- func (gen *GoGenerator) EmitJsonUtil()
- func (gen *GoGenerator) EmitStructType(td *sadl.TypeDef)
- func (gen *GoGenerator) EmitTemplate(name string, tmplSource string, data interface{}, funcMap template.FuncMap)
- func (gen *GoGenerator) EmitType(td *sadl.TypeDef)
- func (gen *GoGenerator) EmitUnitValueType(td *sadl.TypeDef)
- func (gen *GoGenerator) Finish()
- func (gen *GoGenerator) NeedsDecimalType() bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GoGenerator ¶
type GoGenerator struct {
// contains filtered or unexported fields
}
func NewGenerator ¶
func NewGenerator(model *sadl.Model, name, outdir, pkg string, runtime bool) *GoGenerator
func (*GoGenerator) Emit ¶
func (gen *GoGenerator) Emit(s string)
func (*GoGenerator) EmitDecimalType ¶
func (gen *GoGenerator) EmitDecimalType()
func (*GoGenerator) EmitEnumType ¶
func (gen *GoGenerator) EmitEnumType(td *sadl.TypeDef)
func (*GoGenerator) EmitJsonUtil ¶
func (gen *GoGenerator) EmitJsonUtil()
func (*GoGenerator) EmitStructType ¶
func (gen *GoGenerator) EmitStructType(td *sadl.TypeDef)
func (*GoGenerator) EmitTemplate ¶
func (gen *GoGenerator) EmitTemplate(name string, tmplSource string, data interface{}, funcMap template.FuncMap)
func (*GoGenerator) EmitType ¶
func (gen *GoGenerator) EmitType(td *sadl.TypeDef)
func (*GoGenerator) EmitUnitValueType ¶
func (gen *GoGenerator) EmitUnitValueType(td *sadl.TypeDef)
func (*GoGenerator) Finish ¶
func (gen *GoGenerator) Finish()
func (*GoGenerator) NeedsDecimalType ¶
func (gen *GoGenerator) NeedsDecimalType() bool
Click to show internal directories.
Click to hide internal directories.