Documentation ¶
Index ¶
- type BoolFlag
- type Flag
- type Float64Flag
- type IntFlag
- type Set
- func (fs *Set) Bool(name string) bool
- func (fs *Set) BoolE(name string) (bool, error)
- func (fs *Set) Float64(name string) float64
- func (fs *Set) Float64E(name string) (float64, error)
- func (fs *Set) Int(name string) int64
- func (fs *Set) IntE(name string) (int64, error)
- func (fs *Set) Lookup(name string) *flag.Flag
- func (fs *Set) Parse() error
- func (fs *Set) Register(flags ...Flag)
- func (fs *Set) String(name string) string
- func (fs *Set) StringE(name string) (string, error)
- func (fs *Set) Uint(name string) uint64
- func (fs *Set) UintE(name string) (uint64, error)
- type StringFlag
- type UintFlag
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BoolFlag ¶
type Float64Flag ¶
type Float64Flag struct { Name string Usage string Default float64 Variable *float64 Action func(string, *Set) }
func (*Float64Flag) Apply ¶
func (f *Float64Flag) Apply(set *Set)
Apply implements of Flag Apply function.
type IntFlag ¶
type Set ¶
func NewFlagSet ¶
func NewFlagSet() *Set
Click to show internal directories.
Click to hide internal directories.