Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func TestParseFileOptions ¶
func TestParseFileOptions(fd protoreflect.FileDescriptor) (string, *tableaupb.WorkbookOptions)
TestParseFileOptions is aimed to parse the options of a protobuf definition file.
func TestParseMessageOptions ¶
func TestParseMessageOptions(md protoreflect.MessageDescriptor) (string, string, int32, int32, int32, bool)
TestParseMessageOptions is aimed to parse the options of a protobuf message.
Types ¶
type Generator ¶
type Generator struct { ProtoPackage string // protobuf package name. InputDir string // input dir of workbooks. OutputDir string // output dir of generated protoconf files. // contains filtered or unexported fields }
func (*Generator) TestParseFieldOptions ¶
func (gen *Generator) TestParseFieldOptions(md protoreflect.MessageDescriptor, row *Row, depth int, prefix string)
TestParseFieldOptions is aimed to parse the options of all the fields of a protobuf message.
Click to show internal directories.
Click to hide internal directories.