Documentation ¶
Index ¶
- Constants
- func GenConf(protoPackage, indir, outdir string, setters ...options.Option) error
- func GenProto(protoPackage, indir, outdir string, setters ...options.Option) (err error)
- func Generate(protoPackage, indir, outdir string, setters ...options.Option) error
- func NewConfGenerator(protoPackage, indir, outdir string, options ...options.Option) *confgen.Generator
- func NewConfGeneratorWithOptions(protoPackage, indir, outdir string, options *options.Options) *confgen.Generator
- func NewImporter(workbookPath string) (importer.Importer, error)
- func NewProtoGenerator(protoPackage, indir, outdir string, options ...options.Option) *protogen.Generator
- func NewProtoGeneratorWithOptions(protoPackage, indir, outdir string, options *options.Options) *protogen.Generator
- func Proto2Excel(protoPackage, indir, outdir string)
- func SetLang(lang string) error
- type VersionInfo
Constants ¶
const RevisionSize = 7
Variables ¶
This section is empty.
Functions ¶
func GenConf ¶ added in v0.9.6
GenConf can convert Excel/CSV/XML/YAML files to different configuration files: JSON, Text, and Bin.
func Generate ¶ added in v0.9.14
Generate can convert Excel/CSV/XML/YAML files to protoconf files and different configuration files: JSON, Text, and Bin at the same time.
func NewConfGenerator ¶ added in v0.10.6
func NewConfGenerator(protoPackage, indir, outdir string, options ...options.Option) *confgen.Generator
NewConfGenerator creates a new conf generator.
func NewConfGeneratorWithOptions ¶ added in v0.10.6
func NewConfGeneratorWithOptions(protoPackage, indir, outdir string, options *options.Options) *confgen.Generator
NewConfGeneratorWithOptions creates a new conf generator with options.
func NewImporter ¶ added in v0.10.6
NewImporter creates a new importer of the specified workbook.
func NewProtoGenerator ¶ added in v0.10.6
func NewProtoGenerator(protoPackage, indir, outdir string, options ...options.Option) *protogen.Generator
NewProtoGenerator creates a new proto generator.
func NewProtoGeneratorWithOptions ¶ added in v0.10.6
func NewProtoGeneratorWithOptions(protoPackage, indir, outdir string, options *options.Options) *protogen.Generator
NewProtoGeneratorWithOptions creates a new proto generator with options.
func Proto2Excel ¶
func Proto2Excel(protoPackage, indir, outdir string)
Proto2Excel converts protoconf files to excel files (with tableau header). TODO: fully usable generation of excel templates.
Types ¶
type VersionInfo ¶ added in v0.10.6
type VersionInfo struct { ProtogenVersion string // version of protogen module ConfgenVersion string // version of confgen module // VCS info Revision string Time string Experimental string }
VersionInfo holds versions of tableau'd main modules and VCS info.
func GetVersionInfo ¶ added in v0.10.6
func GetVersionInfo() *VersionInfo
GetVersionInfo returns VersionInfo of tableau.
Directories ¶
Path | Synopsis |
---|---|
cmd
|
|
internal
|
|
camelcase
Package camelcase is a micro package to split the words of a camelcase type string into a slice of words.
|
Package camelcase is a micro package to split the words of a camelcase type string into a slice of words. |
Package load provides functions to load a protobuf message from different formats:
|
Package load provides functions to load a protobuf message from different formats: |
Refer:
|
Refer: |
proto
|
|
Package store provides functions to store a protobuf message to different formats: json, bin, and txt.
|
Package store provides functions to store a protobuf message to different formats: json, bin, and txt. |
test
|
|