protogen

package
v0.10.5 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2022 License: MIT Imports: 27 Imported by: 0

Documentation

Index

Constants

View Source
const (
	App     = "protogen"
	Version = "0.4.0"
)
View Source
const (
	TableauProtoPackage = "tableau"
)

Variables

This section is empty.

Functions

func AppVersion added in v0.9.17

func AppVersion() string

func ParseIncellStruct

func ParseIncellStruct(elemType string) []string

Types

type GeneratedBuf

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

func NewGeneratedBuf

func NewGeneratedBuf() *GeneratedBuf

NewGeneratedFile creates a new generated file with the given filename.

func (*GeneratedBuf) Content

func (g *GeneratedBuf) Content() []byte

Content returns the contents of the generated file.

func (*GeneratedBuf) P

func (g *GeneratedBuf) P(v ...interface{})

P prints a line to the generated output. It converts each parameter to a string following the same rules as fmt.Print. It never inserts spaces between parameters.

type Generator

type Generator struct {
	ProtoPackage string // protobuf package name.
	InputDir     string // input dir of workbooks.
	OutputDir    string // output dir of generated protoconf files.

	LocationName string // TZ location name.
	InputOpt     *options.InputProtoOption
	OutputOpt    *options.OutputProtoOption
	// contains filtered or unexported fields
}

func NewGenerator

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

func NewGeneratorWithOptions added in v0.9.7

func NewGeneratorWithOptions(protoPackage, indir, outdir string, opts *options.Options) *Generator

func (*Generator) GenAll added in v0.10.0

func (gen *Generator) GenAll() error

func (*Generator) GenWorkbook added in v0.10.0

func (gen *Generator) GenWorkbook(relWorkbookPaths ...string) error

func (*Generator) Generate

func (gen *Generator) Generate(relWorkbookPaths ...string) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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