golang

package
v1.4.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 10, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL