Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrAllowedPairFlagValues = errors.New("only `set` or `unset` are allowed")
Functions ¶
func ParseMessageSeq ¶
func PrettyPrint ¶
func PrettyPrint(i interface{}) string
PrettyPrint returns a string with nice formatting for structs and JSON-serializable objects
func Usage ¶
func Usage(w io.Writer, info ProgramInfo)
Types ¶
type AbsTimeFlag ¶
func NewAbsTimeFlag ¶
func NewAbsTimeFlag() AbsTimeFlag
func (AbsTimeFlag) Set ¶
func (t AbsTimeFlag) Set(s string) error
func (*AbsTimeFlag) String ¶
func (t *AbsTimeFlag) String() string
type CommandMap ¶
type GlobalOpts ¶
func (GlobalOpts) String ¶
func (o GlobalOpts) String() string
type ProgramInfo ¶
type ProgramInfo struct { Name string Opts GlobalOpts Commands CommandMap }
Click to show internal directories.
Click to hide internal directories.