Documentation ¶
Index ¶
- func FlagErr(flagName, format string, a ...any) error
- func GetParamByName(paramName, paramsStr string) (string, error)
- func Map(flagName, paramsStr string, obj interface{}) error
- func SplitPrefixedName(prefixedName string) (prefix string, name string, err error)
- func Supported(obj interface{}) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetParamByName ¶
func Map ¶
Map assigns the parameter value into the right struct field, which is represented by obj. For example, if we use Map("param1", "value1", &myFlag) with MyFlag struct above, Param1 field would be assigned with "value1".
func SplitPrefixedName ¶
SplitPrefixedName splits prefixedName with "/" as a separator
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.