Documentation ¶
Overview ¶
Package flags handles flag parsing
Index ¶
- func Parse() map[string]interface{}
- func SetFloat(field string, args, fileOptions map[string]interface{}, defaultValue float64) float64
- func SetInt(field string, args, fileOptions map[string]interface{}, defaultValue int) int
- func SetString(field string, args, fileOptions map[string]interface{}, defaultValue string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Parse ¶
func Parse() map[string]interface{}
Parse converts command line arguments into an interface. Argument can have any number of leading dashes and be separated from their value by an equal sign or white space. Equal signs must not be present anywhere other than between the argument and its value.
func SetFloat ¶
SetFloat sets the field value from a command line argument, then from the fileOptions map if no argument is defined and finally to the defaultValue.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.