Documentation ¶ Index ¶ type Date func NewDate(fs *flag.FlagSet, name string, def time.Time, format string, usage string) *Date func (d Date) Set(str string) (err error) func (d Date) String() (str string) type Int func NewInt(fs *flag.FlagSet, name string, def int, usage string) *Int func (i Int) Set(str string) (err error) func (i Int) String() (str string) type Str func New(fs *flag.FlagSet, name string, def string, usage string) *Str func (s Str) Set(str string) (err error) func (s Str) String() (str string) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Date ¶ type Date struct { Value *time.Time Default time.Time // contains filtered or unexported fields } -- Date func NewDate ¶ func NewDate(fs *flag.FlagSet, name string, def time.Time, format string, usage string) *Date func (Date) Set ¶ func (d Date) Set(str string) (err error) func (Date) String ¶ func (d Date) String() (str string) type Int ¶ type Int struct { Value *int Default int } func NewInt ¶ func NewInt(fs *flag.FlagSet, name string, def int, usage string) *Int func (Int) Set ¶ func (i Int) Set(str string) (err error) func (Int) String ¶ func (i Int) String() (str string) type Str ¶ type Str struct { Value *string Default string } Str is a string argument func New ¶ func New(fs *flag.FlagSet, name string, def string, usage string) *Str func (Str) Set ¶ func (s Str) Set(str string) (err error) func (Str) String ¶ func (s Str) String() (str string) Source Files ¶ View all Source files argument.go Click to show internal directories. Click to hide internal directories.