Documentation ¶
Index ¶
- Constants
- func MessageValueEqual(v1, v2 protoreflect.Value) bool
- func ReadSheet(workbookName string, worksheetName string) *xlsx.Sheet
- func TestParseFileOptions(fd protoreflect.FileDescriptor) (string, *tableaupb.WorkbookOptions)
- func TestParseMessageOptions(md protoreflect.MessageDescriptor) (string, string, int32, int32, int32, bool)
- type IllegalFieldType
- type Tableaux
Constants ¶
View Source
const ErrorTmpl_IllegalFieldType = "{{.FieldType}} is illegal at {{.Line}}"
Variables ¶
This section is empty.
Functions ¶
func MessageValueEqual ¶ added in v0.3.5
func MessageValueEqual(v1, v2 protoreflect.Value) bool
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 IllegalFieldType ¶
func (IllegalFieldType) Error ¶
func (e IllegalFieldType) Error() string
type Tableaux ¶
type Tableaux struct { ProtoPackage string // protobuf package name. InputDir string // input dir of workbooks. OutputDir string // output dir of generated files. LocationName string // Location represents the collection of time offsets in use in a geographical area. Default is "Asia/Shanghai". Output *options.OutputOption // output settings. // contains filtered or unexported fields }
func (*Tableaux) TestParseFieldOptions ¶
func (tbx *Tableaux) TestParseFieldOptions(msg protoreflect.Message, row map[string]string, 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.