xcliconstt

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2026 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccessMode

type AccessMode string

AccessMode defines the required filesystem permissions needed to validate a path flag.

const (
	// ModeRead ensures the application can open and read the file or directory.
	ModeRead AccessMode = "read"

	// ModeWrite ensures the application can modify or create the file or directory.
	ModeWrite AccessMode = "write"

	// ModeReadWrite ensures both read and write capabilities are available.
	ModeReadWrite AccessMode = "readwrite"
)

type FlagType

type FlagType string

FlagType defines the strict set of data formats supported by the router for automatic parsing, type conversion, and validation.

const (
	TypeString FlagType = "string"
	TypeInt    FlagType = "int"
	TypeInt64  FlagType = "int64"
	TypeFloat  FlagType = "float"
	TypeBool   FlagType = "bool"

	TypeJSON     FlagType = "json"
	TypeDuration FlagType = "duration"
	TypeDate     FlagType = "date"
	TypeTime     FlagType = "time"
	TypeDateTime FlagType = "datetime"
	TypeEmail    FlagType = "email"

	TypePath        FlagType = "path"
	TypeFilename    FlagType = "filename"
	TypeFilepath    FlagType = "filepath"
	TypeDirname     FlagType = "dirname"
	TypeDirpath     FlagType = "dirpath"
	TypeURL         FlagType = "url"
	TypeFullURL     FlagType = "fullurl"
	TypeRelativeURL FlagType = "relativeurl"

	TypeStringArray FlagType = "[]string"
	TypeIntArray    FlagType = "[]int"
	TypeInt64Array  FlagType = "[]int64"
	TypeFloatArray  FlagType = "[]float"
	TypeBoolArray   FlagType = "[]bool"

	TypeDurationArray FlagType = "[]duration"
	TypeDateArray     FlagType = "[]date"
	TypeTimeArray     FlagType = "[]time"
	TypeDateTimeArray FlagType = "[]datetime"
	TypeEmailArray    FlagType = "[]email"

	TypePathArray        FlagType = "[]path"
	TypeFilenameArray    FlagType = "[]filename"
	TypeFilepathArray    FlagType = "[]filepath"
	TypeDirnameArray     FlagType = "[]dirname"
	TypeDirpathArray     FlagType = "[]dirpath"
	TypeURLArray         FlagType = "[]url"
	TypeFullURLArray     FlagType = "[]fullurl"
	TypeRelativeURLArray FlagType = "[]relativeurl"
)

Jump to

Keyboard shortcuts

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