Documentation
¶
Overview ¶
Package xflag add an additional flag type Array for repeated string flags.
var f xflag.Array flag.Var(&f, "r", "some repeatable flag") flag.Parse() // $ command -r a -r b -r c for _, v := range f { ... } // []string{"a", "b", "c"}
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Date ¶
Date can be used to parse command line args into dates.
type UserPassword ¶
UserPassword allows to pass in user:password in flags.
func (*UserPassword) Set ¶
func (u *UserPassword) Set(value string) error
func (*UserPassword) String ¶
func (u *UserPassword) String() string
Click to show internal directories.
Click to hide internal directories.