Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrNotPointer = errors.New("dst is not a pointer")
)
Functions ¶
Types ¶
type Cloneable ¶ added in v1.6.0
type Cloneable interface {
Clone() flagext.Registerer
}
Cloneable is a config which can be cloned into a flagext.Registerer Contract: the cloned value must not mutate the original.
type Source ¶
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 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.