Documentation ¶
Index ¶
- func NewSheetExporter(outputDir string, output *options.OutputOption) *sheetExporter
- func NewSheetParser(protoPackage, locationName string, opts *tableaupb.WorksheetOptions) *sheetParser
- func ParseFileOptions(fd protoreflect.FileDescriptor) (string, *tableaupb.WorkbookOptions)
- func ParseMessageOptions(md protoreflect.MessageDescriptor) (string, *tableaupb.WorksheetOptions)
- type Field
- type Generator
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewSheetExporter ¶
func NewSheetExporter(outputDir string, output *options.OutputOption) *sheetExporter
func NewSheetParser ¶
func NewSheetParser(protoPackage, locationName string, opts *tableaupb.WorksheetOptions) *sheetParser
func ParseFileOptions ¶ added in v0.9.0
func ParseFileOptions(fd protoreflect.FileDescriptor) (string, *tableaupb.WorkbookOptions)
ParseFileOptions parse the options of a protobuf definition file.
func ParseMessageOptions ¶ added in v0.9.0
func ParseMessageOptions(md protoreflect.MessageDescriptor) (string, *tableaupb.WorksheetOptions)
ParseMessageOptions parse the options of a protobuf message.
Types ¶
type Generator ¶
type Generator struct { ProtoPackage string // protobuf package name. LocationName string // Location represents the collection of time offsets in use in a geographical area. Default is "Asia/Shanghai". InputDir string // input dir of workbooks. OutputDir string // output dir of generated files. Output *options.OutputOption // output settings. Input *options.InputOption // Input settings. Header *options.HeaderOption // header settings. }
func NewGenerator ¶
Click to show internal directories.
Click to hide internal directories.