Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EncodeArgs ¶
Types ¶
type Arg ¶
type Arg interface { StringKey() string StringValue() string ValueType() ArgAcceptedValue }
type ArgAcceptedValue ¶
type ArgAcceptedValue string
const ( ArgAcceptedValueUint ArgAcceptedValue = "uint" ArgAcceptedValueString ArgAcceptedValue = "string" ArgAcceptedValueKeyValue ArgAcceptedValue = "kv" ArgAcceptedValueNone ArgAcceptedValue = "none" )
type FlagArg ¶
type FlagArg struct {
// contains filtered or unexported fields
}
func MustNewFlagArg ¶
func NewFlagArg ¶
func (*FlagArg) StringValue ¶
func (*FlagArg) ValueType ¶
func (a *FlagArg) ValueType() ArgAcceptedValue
type KeyValueArg ¶
type KeyValueArg struct {
// contains filtered or unexported fields
}
func MustNewKeyValueArg ¶
func MustNewKeyValueArg(key string, items []KeyValueArgItem) *KeyValueArg
func NewKeyValueArg ¶
func NewKeyValueArg(key string, items []KeyValueArgItem) (*KeyValueArg, error)
func (*KeyValueArg) StringKey ¶
func (a *KeyValueArg) StringKey() string
func (*KeyValueArg) StringValue ¶
func (a *KeyValueArg) StringValue() string
func (*KeyValueArg) ValueType ¶
func (a *KeyValueArg) ValueType() ArgAcceptedValue
type KeyValueArgItem ¶
type StringArg ¶
type StringArg struct {
// contains filtered or unexported fields
}
func MustNewStringArg ¶
func (*StringArg) StringValue ¶
func (*StringArg) ValueType ¶
func (a *StringArg) ValueType() ArgAcceptedValue
type UintArg ¶
type UintArg struct {
// contains filtered or unexported fields
}
func MustNewUintArg ¶
func MustNewUintArg[T constraints.Integer](key string, value T) *UintArg
func (*UintArg) StringValue ¶
func (*UintArg) ValueType ¶
func (a *UintArg) ValueType() ArgAcceptedValue
Click to show internal directories.
Click to hide internal directories.