Documentation
¶
Index ¶
- func Generate(g Gen, nodes []parser.Node, importDirs []string) string
- func LogErrorAndExit(g Gen, msg string)
- type Gen
- type GenLang
- type GoContainerStmt
- type GoEnumStmt
- type GoField
- type GoGen
- func (g *GoGen) AddContainerDecls(containerDecls []string)
- func (g *GoGen) AddEnumDecls(enumDecls []string)
- func (g *GoGen) File() string
- func (g *GoGen) ForEachCtrFields(f func(i int))
- func (g *GoGen) ForEachEnumValues(f func(i int, value string))
- func (g *GoGen) GenDefine() string
- func (g *GoGen) GenEnum() string
- func (g *GoGen) GenMarshal() string
- func (g *GoGen) GenMarshalPlain() string
- func (g *GoGen) GenReservedIds() string
- func (g *GoGen) GenSize() string
- func (g *GoGen) GenSizePlain() string
- func (g *GoGen) GenStruct() string
- func (g *GoGen) GenUnmarshal() string
- func (g *GoGen) GenUnmarshalPlain() string
- func (g *GoGen) HasPackageDefined() bool
- func (g *GoGen) IsContainer(externalStructure string) bool
- func (g *GoGen) IsEnum(externalStructure string) bool
- func (*GoGen) Lang() GenLang
- func (g *GoGen) ProcessImport(stmt *parser.UseStmt, importDirs []string) ([]string, []string)
- func (g *GoGen) SetContainerStatement(stmt *parser.ContainerStmt)
- func (g *GoGen) SetDefineStatement(stmt *parser.DefineStmt)
- func (g *GoGen) SetEnumStatement(stmt *parser.EnumStmt)
- func (g *GoGen) SetVarMap(varMap map[string]string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LogErrorAndExit ¶
Types ¶
type Gen ¶
type Gen interface { File() string Lang() GenLang GenDefine() string GenEnum() string GenStruct() string GenReservedIds() string GenSize() string GenMarshal() string GenUnmarshal() string GenSizePlain() string GenMarshalPlain() string GenUnmarshalPlain() string ProcessImport(stmt *parser.UseStmt, importDirs []string) ([]string, []string) SetVarMap(map[string]string) HasPackageDefined() bool AddEnumDecls(enumDecls []string) AddContainerDecls(containerDecls []string) SetEnumStatement(stmt *parser.EnumStmt) SetDefineStatement(stmt *parser.DefineStmt) SetContainerStatement(stmt *parser.ContainerStmt) }
type GoContainerStmt ¶
type GoEnumStmt ¶
type GoField ¶
type GoField struct { ID uint16 PublicName string PrivateName string DefaultName string Type *parser.Type }
func (*GoField) AppendUnsafeIfPresent ¶
type GoGen ¶
type GoGen struct {
// contains filtered or unexported fields
}
func (*GoGen) AddContainerDecls ¶
func (*GoGen) AddEnumDecls ¶
func (*GoGen) ForEachCtrFields ¶
func (*GoGen) ForEachEnumValues ¶
func (*GoGen) GenMarshal ¶
func (*GoGen) GenMarshalPlain ¶
func (*GoGen) GenReservedIds ¶
func (*GoGen) GenSizePlain ¶
func (*GoGen) GenUnmarshal ¶
func (*GoGen) GenUnmarshalPlain ¶
func (*GoGen) HasPackageDefined ¶
func (*GoGen) IsContainer ¶
func (*GoGen) ProcessImport ¶
func (*GoGen) SetContainerStatement ¶
func (g *GoGen) SetContainerStatement(stmt *parser.ContainerStmt)
func (*GoGen) SetDefineStatement ¶
func (g *GoGen) SetDefineStatement(stmt *parser.DefineStmt)
func (*GoGen) SetEnumStatement ¶
Click to show internal directories.
Click to hide internal directories.