Documentation
¶
Overview ¶
goUtils is a implementation of some functions and data types to help other libraries.
read more in Readme.md file
Index ¶
- func ByteComparator(a, b interface{}) int
- func ByteOperator(a, b interface{}, op string) interface{}
- func Float32Comparator(a, b interface{}) int
- func Float32Operator(a, b interface{}, op string) interface{}
- func Float64Comparator(a, b interface{}) int
- func Float64Operator(a, b interface{}, op string) interface{}
- func Int16Comparator(a, b interface{}) int
- func Int16Operator(a, b interface{}, op string) interface{}
- func Int32Comparator(a, b interface{}) int
- func Int32Operator(a, b interface{}, op string) interface{}
- func Int64Comparator(a, b interface{}) int
- func Int64Operator(a, b interface{}, op string) interface{}
- func Int8Comparator(a, b interface{}) int
- func Int8Operator(a, b interface{}, op string) interface{}
- func IntComparator(a, b interface{}) int
- func IntOperator(a, b interface{}, op string) interface{}
- func RuneComparator(a, b interface{}) int
- func RuneOperator(a, b interface{}, op string) interface{}
- func StringComparator(a, b interface{}) int
- func StringOperator(a, b interface{}, op string) interface{}
- func TimeComparator(a, b interface{}) int
- func ToBool(value interface{}) bool
- func ToFloat32(value interface{}) float32
- func ToFloat64(value interface{}) float64
- func ToInt(value interface{}) int
- func ToInt16(value interface{}) int16
- func ToInt32(value interface{}) int32
- func ToInt64(value interface{}) int64
- func ToInt8(value interface{}) int8
- func ToString(value interface{}) string
- func ToUInt(value interface{}) uint
- func ToUInt16(value interface{}) uint16
- func ToUInt32(value interface{}) uint32
- func ToUInt64(value interface{}) uint64
- func ToUInt8(value interface{}) uint8
- func UInt16Comparator(a, b interface{}) int
- func UInt16Operator(a, b interface{}, op string) interface{}
- func UInt32Comparator(a, b interface{}) int
- func UInt32Operator(a, b interface{}, op string) interface{}
- func UInt64Comparator(a, b interface{}) int
- func UInt64Operator(a, b interface{}, op string) interface{}
- func UInt8Comparator(a, b interface{}) int
- func UInt8Operator(a, b interface{}, op string) interface{}
- func UIntComparator(a, b interface{}) int
- func UIntOperator(a, b interface{}, op string) interface{}
- type Container
- type EnumerableIndex
- type EnumerableKey
- type IteratorIndex
- type IteratorKey
- type JSONDeserializer
- type JSONSerializer
- type ReverseIteratorIndex
- type ReverseIteratorKey
- type TypeComparator
- type TypeOperator
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Float32Operator ¶
func Float32Operator(a, b interface{}, op string) interface{}
Operate float32
func Float64Operator ¶
func Float64Operator(a, b interface{}, op string) interface{}
Operate float64
func RuneOperator ¶
func RuneOperator(a, b interface{}, op string) interface{}
Operate rune (char with int32)
Types ¶
type EnumerableIndex ¶
type EnumerableIndex interface { Each(func(index int, value interface{})) Any(func(index int, value interface{}) bool) bool All(func(index int, value interface{}) bool) bool Find(func(index int, value interface{}) bool) (int, interface{}) }
Functions for Ordered Containers that index doesnt work in these values
type EnumerableKey ¶
type EnumerableKey interface { Each(func(key interface{}, value interface{})) Any(func(key interface{}, value interface{}) bool) bool All(func(key interface{}, value interface{}) bool) bool Find(func(key interface{}, value interface{}) bool) (interface{}, interface{}) }
Functions for Ordered Containers that index doesnt work in these key/values pairs
type IteratorIndex ¶
Iterator to browse with index
type IteratorKey ¶
type IteratorKey interface { Next() bool Value() interface{} Key() interface{} Begin() First() bool }
Iterator to browse with key-value pairs.
type ReverseIteratorIndex ¶
type ReverseIteratorIndex interface { Prev() bool End() Last() bool IteratorIndex }
ReverseIterator to browse with index
type ReverseIteratorKey ¶
type ReverseIteratorKey interface { Prev() bool End() Last() bool IteratorKey }
ReverseIterator to browse with key-value pairs.
type TypeComparator ¶
type TypeComparator func(a, b interface{}) int
Click to show internal directories.
Click to hide internal directories.