Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrNotPointer = errors.New("dst is not a pointer")
)
Functions ¶
Types ¶
type Source ¶
type Source func(interface{}) error
Source is a generic configuration source. This function may do whatever is required to obtain the configuration. It is passed a pointer to the destination, which will be something compatible to `json.Unmarshal`. The obtained configuration may be written to this object, it may also contain data from previous sources.
func Defaults ¶
func Defaults() Source
Defaults registers flags to the command line using dst as the flagext.Registerer
func Flags ¶
func Flags() Source
Flags parses the flag from the command line, setting only user-supplied values on the flagext.Registerer passed to Defaults()
Click to show internal directories.
Click to hide internal directories.