Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IntContainer ¶ added in v1.1.23
IntContainer is a container for an integer with some additional flags. With standard methods, it will be parsed as "1234:flag1:flag2:flag3" as in, first part has to be an integer, and next parts will be considered as flag.
func ParseIntContainer ¶ added in v1.1.23
func ParseIntContainer[T Integer](value string) *IntContainer[T]
func (*IntContainer[T]) HasFlag ¶ added in v1.1.23
func (c *IntContainer[T]) HasFlag(flags ...string) bool
type IntegerRange ¶
type IntegerRange[T Integer] struct { Min T Max T }
func (*IntegerRange[T]) GetRandom ¶
func (r *IntegerRange[T]) GetRandom() T
func (*IntegerRange[T]) IsInRange ¶
func (r *IntegerRange[T]) IsInRange(value T) bool
func (*IntegerRange[T]) IsValueInRange ¶
func (r *IntegerRange[T]) IsValueInRange(value *IntegerRange[T]) bool
type RangeFloat64 ¶
func (*RangeFloat64) IsInRange ¶
func (r *RangeFloat64) IsInRange(value float64) bool
func (*RangeFloat64) IsNaN ¶
func (r *RangeFloat64) IsNaN() bool
func (*RangeFloat64) IsValueInRange ¶
func (r *RangeFloat64) IsValueInRange(value *RangeFloat64) bool
Click to show internal directories.
Click to hide internal directories.