internaltag

package
v0.17.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 30, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsMandatory

func IsMandatory(f reflect.StructField) bool

func IsStandardType

func IsStandardType(t reflect.Type) bool

func IsValidFlagName

func IsValidFlagName(name string) bool

Types

type FlagPreset added in v0.11.0

type FlagPreset struct {
	Name  string
	Value string
}

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL