Documentation
¶
Index ¶
- func DefaultValues(data interface{}) (map[string]interface{}, error)
- func Fill(data interface{}, values map[string]interface{}) error
- func Parse(data interface{}) error
- func ParseArgs(data interface{}, args []string) error
- func ParseEnv(data interface{}, environ []string) error
- func Print(data interface{}) error
- func ValidateRequired(data interface{}) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultValues ¶
DefaultValues returns all default values of the given struct.
func Parse ¶
func Parse(data interface{}) error
Parse combines all functionality. It parse env args, fills it the struct, print all arguments and validate required fields are set.
func Print ¶
func Print(data interface{}) error
Print all configured arguments. Set display:"hidden" to hide or display:"length" to only print the arguments length.
func ValidateRequired ¶
func ValidateRequired(data interface{}) error
ValidateRequired fields are set and returns an error if not.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.