Help us shape the future of Go! Take the 2026 Go Developer Survey

argtype

package
v0.0.19 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DecimalRange

type DecimalRange struct {
	// contains filtered or unexported fields
}

DecimalRange is an optional min/max pair

func (*DecimalRange) Check

func (r *DecimalRange) Check(v decimal.Decimal) bool

Check if a value is within a range

func (*DecimalRange) Exists

func (r *DecimalRange) Exists() bool

Exists is true if there is a range to check

func (*DecimalRange) Set

func (r *DecimalRange) Set(newValue string) error

Set will initialize the range

func (*DecimalRange) String

func (r *DecimalRange) String() string

func (*DecimalRange) Type

func (r *DecimalRange) Type() string

Type is a description of range

type DecimalRangeArray

type DecimalRangeArray struct {
	// contains filtered or unexported fields
}

DecimalRangeArray checks a set of DecimalRanges

func (*DecimalRangeArray) Check

func (ra *DecimalRangeArray) Check(va []decimal.Decimal) bool

Check if a value is within a range

func (*DecimalRangeArray) CheckString

func (ra *DecimalRangeArray) CheckString(s, sep string) bool

CheckString if a value is within a range

func (*DecimalRangeArray) Exists

func (ra *DecimalRangeArray) Exists() bool

Exists is true if there is a range to check

func (*DecimalRangeArray) Set

func (ra *DecimalRangeArray) Set(newValue string) error

Set sets the value of a DecimalRangeArray

func (*DecimalRangeArray) String

func (ra *DecimalRangeArray) String() string

func (*DecimalRangeArray) Type

func (ra *DecimalRangeArray) Type() string

Type is a description of range

type Range

type Range struct {
	// contains filtered or unexported fields
}

Range is an optional min/max pair

func (*Range) Check

func (r *Range) Check(v uint64) bool

Check if a value is within a range

func (*Range) Exists

func (r *Range) Exists() bool

Exists is true if there is a range to check

func (*Range) Set

func (r *Range) Set(newValue string) error

Set will initialize the range

func (*Range) String

func (r *Range) String() string

func (*Range) Type

func (r *Range) Type() string

Type is a description of range

type Ratio

type Ratio struct {
	// contains filtered or unexported fields
}

Ratio is an optional min/max pair

func (*Ratio) Check

func (r *Ratio) Check(v decimal.Decimal) bool

Check if a value is within a ratio

func (*Ratio) Exists

func (r *Ratio) Exists() bool

Exists is true if there is a ratio to check

func (*Ratio) Set

func (r *Ratio) Set(newValue string) error

Set will initialize the ratio

func (*Ratio) String

func (r *Ratio) String() string

func (*Ratio) Type

func (r *Ratio) Type() string

Type is a description of ratio

type StringSet

type StringSet struct {
	// contains filtered or unexported fields
}

string flag with value in a set of acceptable strings

func NewStringSet

func NewStringSet(name, defaultValue string, values []string) StringSet

func (*StringSet) Exists

func (ss *StringSet) Exists() bool

Exists is true if there is a range to check

func (*StringSet) HelpText

func (ss *StringSet) HelpText() string

func (*StringSet) Set

func (ss *StringSet) Set(newValue string) error

Set will initialize the StringSet

func (*StringSet) String

func (ss *StringSet) String() string

func (*StringSet) Type

func (ss *StringSet) Type() string

Type is the description of this StringSet

Jump to

Keyboard shortcuts

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