Documentation
¶
Index ¶
- func IsOutOfRange(n byte) bool
- func MaxByte() byte
- func MinByte() byte
- type Value
- func (v Value) Add(n byte) Value
- func (v Value) GetErrorOnOutOfRange(n byte, msg string) error
- func (v Value) HasInitialized() bool
- func (v Value) HasInitializedAndSet() bool
- func (v Value) HasInitializedAndTrue() bool
- func (v Value) Is(n Value) bool
- func (v Value) IsBetween(start, end byte) bool
- func (v Value) IsBetweenInt(start, end int) bool
- func (v Value) IsCompareResult(n byte, compare corecomparator.Compare) bool
- func (v Value) IsEqual(n byte) bool
- func (v Value) IsEqualInt(n int) bool
- func (v Value) IsFalse() bool
- func (v Value) IsGreater(n byte) bool
- func (v Value) IsGreaterEqual(n byte) bool
- func (v Value) IsGreaterEqualInt(n int) bool
- func (v Value) IsGreaterInt(n int) bool
- func (v Value) IsLess(n byte) bool
- func (v Value) IsLessEqual(n byte) bool
- func (v Value) IsLessEqualInt(n int) bool
- func (v Value) IsLessInt(n int) bool
- func (v Value) IsNegative() bool
- func (v Value) IsPositive() bool
- func (v Value) IsSet() bool
- func (v Value) IsTrue() bool
- func (v Value) IsUnSetOrUninitialized() bool
- func (v Value) IsUninitialized() bool
- func (v Value) IsUnset() bool
- func (v Value) PanicOnOutOfRange(n byte, msg string)
- func (v Value) String() string
- func (v Value) StringValue() string
- func (v Value) Value() byte
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Value ¶
type Value byte
func (Value) HasInitialized ¶
func (Value) HasInitializedAndSet ¶
func (Value) HasInitializedAndTrue ¶
func (Value) IsBetweenInt ¶
val >= start && val <= end
func (Value) IsCompareResult ¶
func (v Value) IsCompareResult(n byte, compare corecomparator.Compare) bool
Here left is v, and right is `n`
func (Value) IsEqualInt ¶
func (Value) IsNegative ¶
v == Uninitialized || v == Unset || v == False
func (Value) IsUnSetOrUninitialized ¶
v == Uninitialized || v == Unset
func (Value) PanicOnOutOfRange ¶
func (Value) StringValue ¶
Click to show internal directories.
Click to hide internal directories.