Documentation ¶
Index ¶
- Constants
- Variables
- func GenDefineSTCode(pSet *generator.PrototypeSet, td *maker_go.TmplDataGoDefineST, ...) (string, error)
- func GenFileForMessage(pSet *generator.PrototypeSet, origFn string) error
- func GenFileForSet(pSet *generator.PrototypeSet) error
- func PrepareTmplDataDefineST(pSet *generator.PrototypeSet, td *maker_go.TmplDataGoDefineST, ...) error
- type GeneratorConfig
Constants ¶
View Source
const GoPBOptionProtobufPkg = "go_protobuf_pkg"
View Source
const TDGoPBDefineSTBuiltin = `` /* 367-byte string literal not displayed */
Variables ¶
View Source
var TDGoPBDefineST = &generator.TemplateDefine{ Name: "TDGoPBDefineST", Filepath: "go_protobuf_define_st.tmpl", WantTemplateData: "TmplDataGoPBDefineST", BuiltinTemplateText: TDGoPBDefineSTBuiltin, }
Functions ¶
func GenDefineSTCode ¶ added in v0.3.0
func GenDefineSTCode(pSet *generator.PrototypeSet, td *maker_go.TmplDataGoDefineST, df *generator.DefineST) (string, error)
func GenFileForMessage ¶
func GenFileForMessage(pSet *generator.PrototypeSet, origFn string) error
func GenFileForSet ¶
func GenFileForSet(pSet *generator.PrototypeSet) error
func PrepareTmplDataDefineST ¶ added in v0.3.0
func PrepareTmplDataDefineST(pSet *generator.PrototypeSet, td *maker_go.TmplDataGoDefineST, df *generator.DefineST) error
Types ¶
type GeneratorConfig ¶
type GeneratorConfig struct { *maker_go.Context Protobuf *maker_protobuf.Context `json:"protobuf"` ProtobufPkg string `json:"protobufPkg"` ProtobufGoModule string `json:"protobufGoModule"` }
var GenCFG *GeneratorConfig
Click to show internal directories.
Click to hide internal directories.