Documentation ¶
Index ¶
- type DecimalRange
- type DecimalRangeArray
- func (ra *DecimalRangeArray) Check(va []decimal.Decimal) bool
- func (ra *DecimalRangeArray) CheckString(s, sep string) bool
- func (ra *DecimalRangeArray) Exists() bool
- func (ra *DecimalRangeArray) Set(newValue string) error
- func (ra *DecimalRangeArray) String() string
- func (ra *DecimalRangeArray) Type() string
- type Range
- type Ratio
- type StringSet
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
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
type Ratio ¶
type Ratio struct {
// contains filtered or unexported fields
}
Ratio is an optional min/max pair
Click to show internal directories.
Click to hide internal directories.