flag

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2026 License: MIT Imports: 2 Imported by: 21 modules, 11 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bool

type Bool interface {
	Bool(name string, value bool, usage string) *bool
	BoolP(name, shorthand string, value bool, usage string) *bool
	BoolVar(p *bool, name string, value bool, usage string)
	BoolVarP(p *bool, name, shorthand string, value bool, usage string)
	GetBool(name string) (bool, error)
}

type BoolSlice

type BoolSlice interface {
	BoolSlice(name string, value []bool, usage string) *[]bool
	BoolSliceP(name, shorthand string, value []bool, usage string) *[]bool
	BoolSliceVar(p *[]bool, name string, value []bool, usage string)
	BoolSliceVarP(p *[]bool, name, shorthand string, value []bool, usage string)
	GetBoolSlice(name string) ([]bool, error)
}

type Bytes

type Bytes interface {
	BytesBase64(name string, value []byte, usage string) *[]byte
	BytesBase64P(name, shorthand string, value []byte, usage string) *[]byte
	BytesBase64VarP(p *[]byte, name, shorthand string, value []byte, usage string)
	BytesBase64Var(p *[]byte, name string, value []byte, usage string)
	GetBytesBase64(name string) ([]byte, error)

	BytesHexP(name, shorthand string, value []byte, usage string) *[]byte
	BytesHex(name string, value []byte, usage string) *[]byte
	BytesHexVarP(p *[]byte, name, shorthand string, value []byte, usage string)
	BytesHexVar(p *[]byte, name string, value []byte, usage string)
	GetBytesHex(name string) ([]byte, error)
}

type Count

type Count interface {
	CountP(name, shorthand string, usage string) *int
	Count(name string, usage string) *int
	CountVarP(p *int, name, shorthand string, usage string)
	CountVar(p *int, name string, usage string)
	GetCount(name string) (int, error)
}

type Duration

type Duration interface {
	DurationP(name, shorthand string, value time.Duration, usage string) *time.Duration
	Duration(name string, value time.Duration, usage string) *time.Duration
	DurationVarP(p *time.Duration, name, shorthand string, value time.Duration, usage string)
	DurationVar(p *time.Duration, name string, value time.Duration, usage string)
	GetDuration(name string) (time.Duration, error)
}

type DurationSlice

type DurationSlice interface {
	DurationSliceP(name, shorthand string, value []time.Duration, usage string) *[]time.Duration
	DurationSlice(name string, value []time.Duration, usage string) *[]time.Duration
	DurationSliceVarP(p *[]time.Duration, name, shorthand string, value []time.Duration, usage string)
	DurationSliceVar(p *[]time.Duration, name string, value []time.Duration, usage string)
	GetDurationSlice(name string) ([]time.Duration, error)
}

type Float32

type Float32 interface {
	Float32P(name, shorthand string, value float32, usage string) *float32
	Float32(name string, value float32, usage string) *float32
	Float32VarP(p *float32, name, shorthand string, value float32, usage string)
	Float32Var(p *float32, name string, value float32, usage string)
	GetFloat32(name string) (float32, error)
}

type Float32Slice

type Float32Slice interface {
	Float32SliceP(name, shorthand string, value []float32, usage string) *[]float32
	Float32Slice(name string, value []float32, usage string) *[]float32
	Float32SliceVarP(p *[]float32, name, shorthand string, value []float32, usage string)
	Float32SliceVar(p *[]float32, name string, value []float32, usage string)
	GetFloat32Slice(name string) ([]float32, error)
}

type Float64

type Float64 interface {
	Float64P(name, shorthand string, value float64, usage string) *float64
	Float64(name string, value float64, usage string) *float64
	Float64VarP(p *float64, name, shorthand string, value float64, usage string)
	Float64Var(p *float64, name string, value float64, usage string)
	GetFloat64(name string) (float64, error)
}

type Float64Slice

type Float64Slice interface {
	Float64SliceP(name, shorthand string, value []float64, usage string) *[]float64
	Float64Slice(name string, value []float64, usage string) *[]float64
	Float64SliceVarP(p *[]float64, name, shorthand string, value []float64, usage string)
	Float64SliceVar(p *[]float64, name string, value []float64, usage string)
	GetFloat64Slice(name string) ([]float64, error)
}

type IP

type IP interface {
	IPP(name, shorthand string, value net.IP, usage string) *net.IP
	IP(name string, value net.IP, usage string) *net.IP
	IPVarP(p *net.IP, name, shorthand string, value net.IP, usage string)
	IPVar(p *net.IP, name string, value net.IP, usage string)
	GetIP(name string) (net.IP, error)
}

type IPMask

type IPMask interface {
	IPMaskP(name, shorthand string, value net.IPMask, usage string) *net.IPMask
	IPMask(name string, value net.IPMask, usage string) *net.IPMask
	IPMaskVarP(p *net.IPMask, name, shorthand string, value net.IPMask, usage string)
	IPMaskVar(p *net.IPMask, name string, value net.IPMask, usage string)
	GetIPv4Mask(name string) (net.IPMask, error)
}

type IPNet

type IPNet interface {
	IPNetP(name, shorthand string, value net.IPNet, usage string) *net.IPNet
	IPNet(name string, value net.IPNet, usage string) *net.IPNet
	IPNetVarP(p *net.IPNet, name, shorthand string, value net.IPNet, usage string)
	IPNetVar(p *net.IPNet, name string, value net.IPNet, usage string)
	GetIPNet(name string) (net.IPNet, error)
}

type IPSlice

type IPSlice interface {
	IPSliceP(name, shorthand string, value []net.IP, usage string) *[]net.IP
	IPSlice(name string, value []net.IP, usage string) *[]net.IP
	IPSliceVarP(p *[]net.IP, name, shorthand string, value []net.IP, usage string)
	IPSliceVar(p *[]net.IP, name string, value []net.IP, usage string)
	GetIPSlice(name string) ([]net.IP, error)
}

type Int

type Int interface {
	IntP(name, shorthand string, value int, usage string) *int
	Int(name string, value int, usage string) *int
	IntVarP(p *int, name, shorthand string, value int, usage string)
	IntVar(p *int, name string, value int, usage string)
	GetInt(name string) (int, error)
}

type Int8

type Int8 interface {
	Int8P(name, shorthand string, value int8, usage string) *int8
	Int8(name string, value int8, usage string) *int8
	Int8VarP(p *int8, name, shorthand string, value int8, usage string)
	Int8Var(p *int8, name string, value int8, usage string)
	GetInt8(name string) (int8, error)
}

type Int16

type Int16 interface {
	Int16P(name, shorthand string, value int16, usage string) *int16
	Int16(name string, value int16, usage string) *int16
	Int16VarP(p *int16, name, shorthand string, value int16, usage string)
	Int16Var(p *int16, name string, value int16, usage string)
	GetInt16(name string) (int16, error)
}

type Int32

type Int32 interface {
	Int32P(name, shorthand string, value int32, usage string) *int32
	Int32(name string, value int32, usage string) *int32
	Int32VarP(p *int32, name, shorthand string, value int32, usage string)
	Int32Var(p *int32, name string, value int32, usage string)
	GetInt32(name string) (int32, error)
}

type Int32Slice

type Int32Slice interface {
	Int32SliceP(name, shorthand string, value []int32, usage string) *[]int32
	Int32Slice(name string, value []int32, usage string) *[]int32
	Int32SliceVarP(p *[]int32, name, shorthand string, value []int32, usage string)
	Int32SliceVar(p *[]int32, name string, value []int32, usage string)
	GetInt32Slice(name string) ([]int32, error)
}

type Int64

type Int64 interface {
	Int64P(name, shorthand string, value int64, usage string) *int64
	Int64(name string, value int64, usage string) *int64
	Int64VarP(p *int64, name, shorthand string, value int64, usage string)
	Int64Var(p *int64, name string, value int64, usage string)
	GetInt64(name string) (int64, error)
}

type Int64Slice

type Int64Slice interface {
	Int64SliceP(name, shorthand string, value []int64, usage string) *[]int64
	Int64Slice(name string, value []int64, usage string) *[]int64
	Int64SliceVarP(p *[]int64, name, shorthand string, value []int64, usage string)
	Int64SliceVar(p *[]int64, name string, value []int64, usage string)
	GetInt64Slice(name string) ([]int64, error)
}

type IntSlice

type IntSlice interface {
	IntSliceP(name, shorthand string, value []int, usage string) *[]int
	IntSlice(name string, value []int, usage string) *[]int
	IntSliceVarP(p *[]int, name, shorthand string, value []int, usage string)
	IntSliceVar(p *[]int, name string, value []int, usage string)
	GetIntSlice(name string) ([]int, error)
}

type String

type String interface {
	String(name string, value string, usage string) *string
	StringP(name, shorthand string, value string, usage string) *string
	StringVar(p *string, name string, value string, usage string)
	StringVarP(p *string, name, shorthand string, value string, usage string)
}

type StringArray

type StringArray interface {
	StringArrayP(name, shorthand string, value []string, usage string) *[]string
	StringArray(name string, value []string, usage string) *[]string
	StringArrayVarP(p *[]string, name, shorthand string, value []string, usage string)
	StringArrayVar(p *[]string, name string, value []string, usage string)
	GetStringArray(name string) ([]string, error)
}

type StringSlice

type StringSlice interface {
	StringSliceP(name, shorthand string, value []string, usage string) *[]string
	StringSlice(name string, value []string, usage string) *[]string
	StringSliceVarP(p *[]string, name, shorthand string, value []string, usage string)
	StringSliceVar(p *[]string, name string, value []string, usage string)
	GetStringSlice(name string) ([]string, error)
}

type StringToInt

type StringToInt interface {
	StringToIntP(name, shorthand string, value map[string]int, usage string) *map[string]int
	StringToInt(name string, value map[string]int, usage string) *map[string]int
	StringToIntVarP(p *map[string]int, name, shorthand string, value map[string]int, usage string)
	StringToIntVar(p *map[string]int, name string, value map[string]int, usage string)
	GetStringToInt(name string) (map[string]int, error)
}

type StringToInt64

type StringToInt64 interface {
	StringToInt64P(name, shorthand string, value map[string]int64, usage string) *map[string]int64
	StringToInt64(name string, value map[string]int64, usage string) *map[string]int64
	StringToInt64VarP(p *map[string]int64, name, shorthand string, value map[string]int64, usage string)
	StringToInt64Var(p *map[string]int64, name string, value map[string]int64, usage string)
	GetStringToInt64(name string) (map[string]int64, error)
}

type StringToString

type StringToString interface {
	StringToStringP(name, shorthand string, value map[string]string, usage string) *map[string]string
	StringToString(name string, value map[string]string, usage string) *map[string]string
	StringToStringVarP(p *map[string]string, name, shorthand string, value map[string]string, usage string)
	StringToStringVar(p *map[string]string, name string, value map[string]string, usage string)
	GetStringToString(name string) (map[string]string, error)
}

type Uint

type Uint interface {
	UintP(name, shorthand string, value uint, usage string) *uint
	Uint(name string, value uint, usage string) *uint
	UintVarP(p *uint, name, shorthand string, value uint, usage string)
	UintVar(p *uint, name string, value uint, usage string)
}

type Uint8

type Uint8 interface {
	Uint8P(name, shorthand string, value uint8, usage string) *uint8
	Uint8(name string, value uint8, usage string) *uint8
	Uint8VarP(p *uint8, name, shorthand string, value uint8, usage string)
	Uint8Var(p *uint8, name string, value uint8, usage string)
	GetUint8(name string) (uint8, error)
}

type Uint16

type Uint16 interface {
	Uint16P(name, shorthand string, value uint16, usage string) *uint16
	Uint16(name string, value uint16, usage string) *uint16
	Uint16VarP(p *uint16, name, shorthand string, value uint16, usage string)
	Uint16Var(p *uint16, name string, value uint16, usage string)
	GetUint16(name string) (uint16, error)
}

type Uint32

type Uint32 interface {
	Uint32P(name, shorthand string, value uint32, usage string) *uint32
	Uint32(name string, value uint32, usage string) *uint32
	Uint32VarP(p *uint32, name, shorthand string, value uint32, usage string)
	Uint32Var(p *uint32, name string, value uint32, usage string)
	GetUint32(name string) (uint32, error)
}

type Uint64

type Uint64 interface {
	Uint64P(name, shorthand string, value uint64, usage string) *uint64
	Uint64(name string, value uint64, usage string) *uint64
	Uint64VarP(p *uint64, name, shorthand string, value uint64, usage string)
	Uint64Var(p *uint64, name string, value uint64, usage string)
	GetUint64(name string) (uint64, error)
}

type UintSlice

type UintSlice interface {
	UintSliceP(name, shorthand string, value []uint, usage string) *[]uint
	UintSlice(name string, value []uint, usage string) *[]uint
	UintSliceVarP(p *[]uint, name, shorthand string, value []uint, usage string)
	UintSliceVar(p *[]uint, name string, value []uint, usage string)
	GetUintSlice(name string) ([]uint, error)
}

Jump to

Keyboard shortcuts

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