Documentation
¶
Index ¶
Constants ¶
View Source
const ( FlagAnnotation = "___leodido_structcli_flagenvs" FlagEnvOnlyAnnotation = "___leodido_structcli_flagenvonly" )
Variables ¶
View Source
var (
EnvSep = "_"
)
Functions ¶
func IsEnvOnly ¶ added in v0.16.0
func IsEnvOnly(f reflect.StructField) bool
IsEnvOnly returns true if the struct field's flagenv tag is set to "only".
func IsValidFlagEnvTag ¶ added in v0.16.0
IsValidFlagEnvTag validates the flagenv tag value. Returns nil for valid values ("", "true", "false", "only") and an error otherwise.
Types ¶
Click to show internal directories.
Click to hide internal directories.