Documentation ¶
Overview ¶
Deprecated: *flag.FlagSet is difficult to use and hard to test.
Index ¶
- Variables
- func Bool(name string, environ string, value bool, usage string) *booldeprecated
- func BoolVar(p *bool, name string, environ string, value bool, usage string)deprecated
- func Float64(name string, environ string, value float64, usage string) *float64deprecated
- func Float64Var(p *float64, name string, environ string, value float64, usage string)deprecated
- func Int(name string, environ string, value int, usage string) *intdeprecated
- func Int64(name string, environ string, value int64, usage string) *int64deprecated
- func Int64Var(p *int64, name string, environ string, value int64, usage string)deprecated
- func IntVar(p *int, name string, environ string, value int, usage string)deprecated
- func Second(name string, environ string, value time.Duration, usage string) *time.Durationdeprecated
- func SecondVar(p *time.Duration, name string, environ string, value time.Duration, ...)deprecated
- func String(name string, environ string, value string, usage string) *stringdeprecated
- func StringVar(p *string, name string, environ string, value string, usage string)deprecated
- func Uint(name string, environ string, value uint, usage string) *uintdeprecated
- func Uint64(name string, environ string, value uint64, usage string) *uint64deprecated
- func Uint64Var(p *uint64, name string, environ string, value uint64, usage string)deprecated
- func UintVar(p *uint, name string, environ string, value uint, usage string)deprecated
- type FlagEnvSetdeprecated
- func (s *FlagEnvSet) Bool(name string, environ string, value bool, usage string) *booldeprecated
- func (s *FlagEnvSet) BoolVar(p *bool, name string, environ string, value bool, usage string)deprecated
- func (s *FlagEnvSet) Float64(name string, environ string, value float64, usage string) *float64deprecated
- func (s *FlagEnvSet) Float64Var(p *float64, name string, environ string, value float64, usage string)deprecated
- func (s *FlagEnvSet) Int(name string, environ string, value int, usage string) *intdeprecated
- func (s *FlagEnvSet) Int64(name string, environ string, value int64, usage string) *int64deprecated
- func (s *FlagEnvSet) Int64Var(p *int64, name string, environ string, value int64, usage string)deprecated
- func (s *FlagEnvSet) IntVar(p *int, name string, environ string, value int, usage string)deprecated
- func (s *FlagEnvSet) Second(name string, environ string, value time.Duration, usage string) *time.Durationdeprecated
- func (s *FlagEnvSet) SecondVar(p *time.Duration, name string, environ string, value time.Duration, ...)deprecated
- func (s *FlagEnvSet) String(name string, environ string, value string, usage string) *stringdeprecated
- func (s *FlagEnvSet) StringVar(p *string, name string, environ string, value string, usage string)deprecated
- func (s *FlagEnvSet) Uint(name string, environ string, value uint, usage string) *uintdeprecated
- func (s *FlagEnvSet) Uint64(name string, environ string, value uint64, usage string) *uint64deprecated
- func (s *FlagEnvSet) Uint64Var(p *uint64, name string, environ string, value uint64, usage string)deprecated
- func (s *FlagEnvSet) UintVar(p *uint, name string, environ string, value uint, usage string)deprecated
Constants ¶
This section is empty.
Variables ¶
View Source
var CommandLine = NewFlagEnvSet(os.Args[0], flag.ExitOnError)
CommandLine is the default set of command-line flags, parsed from os.Args. The top-level functions such as BoolVar, Arg, and so on are wrappers for the methods of CommandLine.
Deprecated: *flag.FlagSet is difficult to use and hard to test.
Functions ¶
Types ¶
type FlagEnvSet
deprecated
Deprecated: *flag.FlagSet is difficult to use and hard to test.
func NewFlagEnvSet
deprecated
func NewFlagEnvSet(name string, errorHandling flag.ErrorHandling) *FlagEnvSet
Deprecated: *flag.FlagSet is difficult to use and hard to test.
func (*FlagEnvSet) Float64Var
deprecated
Click to show internal directories.
Click to hide internal directories.