go_protobuf

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2022 License: MulanPSL-2.0 Imports: 9 Imported by: 0

Documentation

Index

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

Jump to

Keyboard shortcuts

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