cfg

package
v5.1.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2019 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 GreenConfig

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

	ReadStringsFast bool

	MethodPrefix string
	SerzEmpty    bool

	AllTuple    bool
	SkipZidClue bool
	Msgpack2    bool // -msgpack2 is an alias for -omit-clue

	ShowVersion           bool
	NoEmbeddedStructNames bool

	NoDedup bool
}

func (*GreenConfig) DefineFlags

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

call DefineFlags before myflags.Parse()

func (*GreenConfig) ValidateConfig

func (c *GreenConfig) 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