confgen

package
v0.7.5 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewSheetExporter added in v0.6.2

func NewSheetExporter(outputDir string, output *options.OutputOption) *sheetExporter

func NewSheetParser added in v0.6.2

func NewSheetParser(protoPackage, locationName string) *sheetParser

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 added in v0.7.5

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, Prototext, and Protowire.
mexporter is the message exporter package, which can export one single message to different formts: JSON, Prototext, and Protowire.

Jump to

Keyboard shortcuts

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