Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsMandatory ¶
func IsMandatory(f reflect.StructField) bool
func IsStandardType ¶
func IsValidFlagName ¶
Types ¶
type FlagPreset ¶ added in v0.11.0
FlagPreset defines a CLI-only flag alias that sets a fixed value on a canonical target flag.
func ParseFlagPresets ¶ added in v0.11.0
func ParseFlagPresets(raw string) ([]FlagPreset, error)
ParseFlagPresets parses a `flagpreset` tag value.
Supported formats: - "alias=value" - "alias1=value1;alias2=value2" - "alias1=value1,alias2=value2"
Both separators are accepted for backward compatibility. If both separators are present, ';' wins so commas can remain inside values.
Click to show internal directories.
Click to hide internal directories.