Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( DefaultArgs []*Arg ArgsByLongname = make(map[string]*Arg, 0) DefaultSourceOrder = []SourceType{SourceFile, SourceEnv, SourceArgs} EnvPrefix = "GOARG_" )
Functions ¶
Types ¶
type Arg ¶
type Arg struct {
Source *SourceType
Required bool
// contains filtered or unexported fields
}
func WithString ¶
func WithStringS ¶
type SourceType ¶
type SourceType uint8
const ( SourceNotFound SourceType = iota SourceFile SourceEnv SourceArgs )
func (SourceType) String ¶
func (i SourceType) String() string
Click to show internal directories.
Click to hide internal directories.