confgen

package
v0.7.3 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2022 License: MIT Imports: 23 Imported by: 0

Documentation

Index

Constants

View Source
const ErrorTmpl_IllegalFieldType = "{{.FieldType}} is illegal at {{.Line}}"

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.
}

func (*Generator) Generate

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

type IllegalFieldType

type IllegalFieldType struct {
	FieldType string
	Line      int
}

func (IllegalFieldType) Error

func (e IllegalFieldType) Error() string

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