Documentation ¶
Overview ¶
Package genpjson generates golang type by protobuf file.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Version of the generator. Version = "(unknown)" // WithoutOmitempty specifies that json tags will be generate without omitempty. WithoutOmitempty = false )
Some variables as config of generator.
Functions ¶
func GenerateFile ¶
GenerateFile generates golang file with JSON structs.
Types ¶
type FileInfo ¶
type FileInfo struct { *protogen.File Enums []*EnumInfo Messages []*MessageInfo }
FileInfo proto file with all enums and messages in "flattened ordering".
func GetFileInfo ¶
GetFileInfo returns file info with all enums and messages.
type MessageInfo ¶
MessageInfo proto message with fields list.
Click to show internal directories.
Click to hide internal directories.