Documentation ¶
Index ¶
- Variables
- func Bool(name string, environ string, value bool, usage string) *bool
- func BoolVar(p *bool, name string, environ string, value bool, usage string)
- func Float64(name string, environ string, value float64, usage string) *float64
- func Float64Var(p *float64, name string, environ string, value float64, usage string)
- func Int(name string, environ string, value int, usage string) *int
- func Int64(name string, environ string, value int64, usage string) *int64
- func Int64Var(p *int64, name string, environ string, value int64, usage string)
- func IntVar(p *int, name string, environ string, value int, usage string)
- func Second(name string, environ string, value time.Duration, usage string) *time.Duration
- func SecondVar(p *time.Duration, name string, environ string, value time.Duration, ...)
- func String(name string, environ string, value string, usage string) *string
- func StringVar(p *string, name string, environ string, value string, usage string)
- func Uint(name string, environ string, value uint, usage string) *uint
- func Uint64(name string, environ string, value uint64, usage string) *uint64
- func Uint64Var(p *uint64, name string, environ string, value uint64, usage string)
- func UintVar(p *uint, name string, environ string, value uint, usage string)
- type FlagEnvSet
- func (s *FlagEnvSet) Bool(name string, environ string, value bool, usage string) *bool
- func (s *FlagEnvSet) BoolVar(p *bool, name string, environ string, value bool, usage string)
- func (s *FlagEnvSet) Float64(name string, environ string, value float64, usage string) *float64
- func (s *FlagEnvSet) Float64Var(p *float64, name string, environ string, value float64, usage string)
- func (s *FlagEnvSet) Int(name string, environ string, value int, usage string) *int
- func (s *FlagEnvSet) Int64(name string, environ string, value int64, usage string) *int64
- func (s *FlagEnvSet) Int64Var(p *int64, name string, environ string, value int64, usage string)
- func (s *FlagEnvSet) IntVar(p *int, name string, environ string, value int, usage string)
- func (s *FlagEnvSet) Second(name string, environ string, value time.Duration, usage string) *time.Duration
- func (s *FlagEnvSet) SecondVar(p *time.Duration, name string, environ string, value time.Duration, ...)
- func (s *FlagEnvSet) String(name string, environ string, value string, usage string) *string
- func (s *FlagEnvSet) StringVar(p *string, name string, environ string, value string, usage string)
- func (s *FlagEnvSet) Uint(name string, environ string, value uint, usage string) *uint
- func (s *FlagEnvSet) Uint64(name string, environ string, value uint64, usage string) *uint64
- func (s *FlagEnvSet) Uint64Var(p *uint64, name string, environ string, value uint64, usage string)
- func (s *FlagEnvSet) UintVar(p *uint, name string, environ string, value uint, usage string)
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.
Functions ¶
func Float64Var ¶
Types ¶
type FlagEnvSet ¶
func NewFlagEnvSet ¶
func NewFlagEnvSet(name string, errorHandling flag.ErrorHandling) *FlagEnvSet
func (*FlagEnvSet) Float64Var ¶
Click to show internal directories.
Click to hide internal directories.