cfg

package
v4.1.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2017 License: MIT Imports: 1 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ZebraConfig

type ZebraConfig struct {
	Out        string
	GoFile     string
	Encode     bool
	Marshal    bool
	Tests      bool
	Unexported bool

	WriteSchema string
	GenSchemaId bool

	// for back-compatibity, generate msgpack2
	// encoders instead of ZebraPack
	UseMsgp2 bool

	ReadStringsFast       bool
	SchemaToGo            string
	NoEmbeddedSchema      bool
	NoEmbeddedStructNames bool

	MethodPrefix string
	NoLoad       bool
}

func (*ZebraConfig) DefineFlags

func (c *ZebraConfig) DefineFlags(fs *flag.FlagSet)

call DefineFlags before myflags.Parse()

func (*ZebraConfig) ValidateConfig

func (c *ZebraConfig) ValidateConfig() error

call c.ValidateConfig() after myflags.Parse()

Jump to

Keyboard shortcuts

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