Documentation
¶
Overview ¶
Package generic contains structures for processing generic values such as numbers and iterables.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Iterable ¶
type Iterable interface { Iterate(next NextElementFunc) error Count() int IsNil() bool IsElementImplements(reflectType reflect.Type) bool }
func NewIterable ¶
type NextElementFunc ¶
NextElementFunc used to iterate over iterable via closure. To break cycle closure function needs to return error.
type NotIterableError ¶
type NotIterableError struct {
// contains filtered or unexported fields
}
func (NotIterableError) Error ¶
func (err NotIterableError) Error() string
type NotNumericError ¶
type NotNumericError struct {
// contains filtered or unexported fields
}
func (NotNumericError) Error ¶
func (err NotNumericError) Error() string
type Number ¶
type Number struct {
// contains filtered or unexported fields
}
func MustNewNumber ¶
func MustNewNumber(value interface{}) Number
func NewNumberFromFloat ¶
func NewNumberFromInt ¶
func (Number) IsGreaterThan ¶
func (Number) IsLessThan ¶
Click to show internal directories.
Click to hide internal directories.