confgen

package
v0.9.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 20, 2022 License: MIT Imports: 20 Imported by: 0

Documentation

Index

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) *sheetParser

func ParseFileOptions added in v0.9.0

ParseFileOptions parse the options of a protobuf definition file.

func ParseMessageOptions added in v0.9.0

ParseMessageOptions parse the options of a protobuf message.

Types

type Field

type Field struct {
	// contains filtered or unexported fields
}

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

func NewGenerator(protoPackage, indir, outdir string, setters ...options.Option) *Generator

func (*Generator) Generate

func (gen *Generator) Generate(relWorkbookPath string, worksheetName string) (err error)

Directories

Path Synopsis
mexporter is the message exporter package, which can export one single message to different formts: JSON, Text, and Wire.
mexporter is the message exporter package, which can export one single message to different formts: JSON, Text, and Wire.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL