Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Bytes ¶
type Bytes struct {
Bytes uint64 `json:"bytes" struct:"bytes"`
}
Bytes wraps a uint64 byte value
type BytesOpt ¶
type BytesOpt struct {
Bytes Uint `json:"bytes" struct:"bytes"`
}
BytesOpt wraps a uint64 byte value in an option type
type Float ¶
type Float struct {
// contains filtered or unexported fields
}
Float is a wrapper for "optional" types, with the bool value indicating if the stored int is a legitimate value.
type Int ¶
type Int struct {
// contains filtered or unexported fields
}
Int is a wrapper for "optional" types, with the bool value indicating if the stored int is a legitimate value.
type Pct ¶
type Pct struct {
Pct float64 `json:"pct" struct:"pct"`
}
Pct wraps a float64 percent value
type PctOpt ¶
type PctOpt struct {
Pct Float `json:"pct" struct:"pct"`
}
PctOpt wraps a float64 percent value in an option type
type Uint ¶
type Uint struct {
// contains filtered or unexported fields
}
Uint is a wrapper for "optional" types, with the bool value indicating if the stored int is a legitimate value.
func (Uint) MultUint64OrNone ¶
MultUint64OrNone or will multiply the existing Uint value by a supplied uint64, and return None if either the Uint is none, or the supplied uint64 is zero.
func (Uint) SubtractOrNone ¶
SubtractOrNone will subtract the existing uint with the supplied uint64 value. If this would result in a value invalid for a uint (ie, a negative number), return None
type ZeroInterface ¶
type ZeroInterface interface {
IsZero() bool
}
ZeroInterface is a type interface for cases where we need to cast from a void pointer