Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrTargetNotAPointer = errors.New("target must be pointer")
ErrTargetNotAPointer is returned if the target passed to Load is not pointer.
View Source
var ErrTargetNotAStruct = errors.New("target must be struct pointer")
ErrTargetNotAStruct is returned if the target passed to Load* is not pointer to a struct type.
Functions ¶
Types ¶
type Option ¶
type Option interface {
// contains filtered or unexported methods
}
Option .
func WithArgs ¶
WithArgs overrides the default argument list (os.Args[1:]) used for parsing the flags.
func WithFlagset ¶
WithFlagset overrides the default flagset the flags will be added to.
Click to show internal directories.
Click to hide internal directories.