Versions in this module Expand all Collapse all v0 v0.1.0 Jun 12, 2019 Changes in this version + var UsefulFunc = template.FuncMap + func CSTypeName(fd *model.FieldDescriptor) string + func CSTypeNameFull(fd *model.FieldDescriptor) (ret string) + func ExportSymbolName(name string) string + func GoTypeName(fd *model.FieldDescriptor) string + func IsMessage(d *model.Descriptor) bool + func TagNumber(d *model.Descriptor, fd *model.FieldDescriptor) (tag int) + type CodeGen struct + func NewCodeGen(name string) *CodeGen + func (self *CodeGen) Code() string + func (self *CodeGen) Data() []byte + func (self *CodeGen) Error() error + func (self *CodeGen) FormatGoCode() *CodeGen + func (self *CodeGen) ParseTemplate(textTemplate string, modelData interface{}) *CodeGen + func (self *CodeGen) RegisterTemplateFunc(funcMap template.FuncMap) *CodeGen + func (self *CodeGen) WriteBytes(data *[]byte) *CodeGen + func (self *CodeGen) WriteOutputFile(outputFileName string) *CodeGen