Documentation ¶
Index ¶
- func GenerateFile(g GeneratedFile, req *pluginpb.CodeGeneratorRequest, file *protogen.File, ...)
- func GenerateHeader(g GeneratedFile, req *pluginpb.CodeGeneratorRequest, file *protogen.File)
- func GenerateMarshalers(g GeneratedFile, messages []*protogen.Message, opts Options)
- type GeneratedFile
- type Options
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateFile ¶
func GenerateFile(g GeneratedFile, req *pluginpb.CodeGeneratorRequest, file *protogen.File, opts Options)
GenerateFile generates the jsonpb/protojson marshaler implementations for every Message in the input proto file.
func GenerateHeader ¶
func GenerateHeader(g GeneratedFile, req *pluginpb.CodeGeneratorRequest, file *protogen.File)
GenerateHeader generates the header comments, which contain information about the build tools and arguments.
func GenerateMarshalers ¶
func GenerateMarshalers(g GeneratedFile, messages []*protogen.Message, opts Options)
GenerateMarshalers generates the actual MarshalJSON implementations for each Message in the input file.
Types ¶
type GeneratedFile ¶
type GeneratedFile interface {
P(...interface{})
}
GeneratedFile is the set of methods needed by protoc-gen-go-json on *protogen.GeneratedFile. It exists mainly for ease of testing.
Click to show internal directories.
Click to hide internal directories.