Documentation
¶
Index ¶
- func AllFloat32s(s []float32, fn func(v float32) bool) bool
- func AllFloat64s(s []float64, fn func(v float64) bool) bool
- func AllInt16s(s []int16, fn func(v int16) bool) bool
- func AllInt32s(s []int32, fn func(v int32) bool) bool
- func AllInt64s(s []int64, fn func(v int64) bool) bool
- func AllInt8s(s []int8, fn func(v int8) bool) bool
- func AllInts(s []int, fn func(v int) bool) bool
- func AllStrings(s []string, fn func(v string) bool) bool
- func AnyFloat32s(s []float32, fn func(v float32) bool) bool
- func AnyFloat64s(s []float64, fn func(v float64) bool) bool
- func AnyInt16s(s []int16, fn func(v int16) bool) bool
- func AnyInt32s(s []int32, fn func(v int32) bool) bool
- func AnyInt64s(s []int64, fn func(v int64) bool) bool
- func AnyInt8s(s []int8, fn func(v int8) bool) bool
- func AnyInts(s []int, fn func(v int) bool) bool
- func AnyStrings(s []string, fn func(v string) bool) bool
- func ContainFloat32s(s []float32, e float32) bool
- func ContainFloat64s(s []float64, e float64) bool
- func ContainInt16s(s []int16, e int16) bool
- func ContainInt32s(s []int32, e int32) bool
- func ContainInt64s(s []int64, e int64) bool
- func ContainInt8s(s []int8, e int8) bool
- func ContainInts(s []int, e int) bool
- func ContainStrings(s []string, e string) bool
- func ContainStringsIgnoreCase(s []string, e string) bool
- func DistinctFloat32s(s []float32) []float32
- func DistinctFloat64s(s []float64) []float64
- func DistinctInt16s(s []int16) []int16
- func DistinctInt32s(s []int32) []int32
- func DistinctInt64s(s []int64) []int64
- func DistinctInt8s(s []int8) []int8
- func DistinctInts(s []int) []int
- func DistinctStrings(s []string) []string
- func FilterFloat32s(s []float32, fn func(v float32) bool) []float32
- func FilterFloat64s(s []float64, fn func(v float64) bool) []float64
- func FilterInt16s(s []int16, fn func(v int16) bool) []int16
- func FilterInt32s(s []int32, fn func(v int32) bool) []int32
- func FilterInt64s(s []int64, fn func(v int64) bool) []int64
- func FilterInt8s(s []int8, fn func(v int8) bool) []int8
- func FilterInts(s []int, fn func(v int) bool) []int
- func FilterStrings(s []string, fn func(v string) bool) []string
- func Page(arr interface{}, pageNum, pageLimit int) (interface{}, bool)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AllFloat32s ¶
AllFloat32s applies a fn to each element of s (if s is empty, returns false), if all elements make that fn return true then AllFloat32s will return true, else return false.
func AllFloat64s ¶
AllFloat64s applies a fn to each element of s (if s is empty, returns false), if all elements make that fn return true then AllFloat64s will return true, else return false.
func AllInt16s ¶
AllInt16s applies a fn to each element of s (if s is empty, returns false), if all elements make that fn return true then AllInt16s will return true, else return false.
func AllInt32s ¶
AllInt32s applies a fn to each element of s (if s is empty, returns false), if all elements make that fn return true then AllInt32s will return true, else return false.
func AllInt64s ¶
AllInt64s applies a fn to each element of s (if s is empty, returns false), if all elements make that fn return true then AllInt64s will return true, else return false.
func AllInt8s ¶
AllInt8s applies a fn to each element of s (if s is empty, returns false), if all elements make that fn return true then AllInt8s will return true, else return false.
func AllInts ¶
AllInts applies a fn to each element of s (if s is empty, returns false), if all elements make that fn return true then AllInts will return true, else return false.
func AllStrings ¶
AllStrings applies a fn to each element of s (if s is empty, returns false), if all elements make that fn return true then AllStrings will return true, else return false.
func AnyFloat32s ¶
AnyFloat32s applies a fn to each element of s (if s is empty, returns false), if there exist at least one element make that fn return true then AnyFloat32s will return true, else return false.
func AnyFloat64s ¶
AnyFloat64s applies a fn to each element of s (if s is empty, returns false), if there exist at least one element make that fn return true then AnyFloat64s will return true, else return false.
func AnyInt16s ¶
AnyInt16s applies a fn to each element of s (if s is empty, returns false), if there exist at least one element make that fn return true then AnyInt16s will return true, else return false.
func AnyInt32s ¶
AnyInt32s applies a fn to each element of s (if s is empty, returns false), if there exist at least one element make that fn return true then AnyInt32s will return true, else return false.
func AnyInt64s ¶
AnyInt64s applies a fn to each element of s (if s is empty, returns false), if there exist at least one element make that fn return true then AnyInt64s will return true, else return false.
func AnyInt8s ¶
AnyInt8s applies a fn to each element of s (if s is empty, returns false), if there exist at least one element make that fn return true then AnyInt8s will return true, else return false.
func AnyInts ¶
AnyInts applies a fn to each element of s (if s is empty, returns false), if there exist at least one element make that fn return true then AnyInts will return true, else return false.
func AnyStrings ¶
AnyStrings applies a fn to each element of s (if s is empty, returns false), if there exist at least one element make that fn return true then AnyStrings will return true, else return false.
func ContainFloat32s ¶
ContainFloat32s returns true if s contain e.
func ContainFloat64s ¶
ContainFloat64s returns true if s contain e.
func ContainInt16s ¶
ContainInt16s returns true if s contain e.
func ContainInt32s ¶
ContainInt32s returns true if s contain e.
func ContainInt64s ¶
ContainInt64s returns true if s contain e.
func ContainInt8s ¶
ContainInt8s returns true if s contain e.
func ContainStrings ¶
ContainStrings returns true if s contain e.
func ContainStringsIgnoreCase ¶
ContainStringsIgnoreCase returns true if s contain e, ignore case of element.
func DistinctFloat32s ¶
DistinctFloat32s remove duplicate element in slices.
func DistinctFloat64s ¶
DistinctFloat64s remove duplicate element in slices.
func DistinctInt16s ¶
DistinctInt16s remove duplicate element in slices.
func DistinctInt32s ¶
DistinctInt32s remove duplicate element in slices.
func DistinctInt64s ¶
DistinctInt64s remove duplicate element in slices.
func DistinctInt8s ¶
DistinctInt8s remove duplicate element in slices.
func DistinctInts ¶
DistinctInts remove duplicate element in slices.
func DistinctStrings ¶
DistinctStrings remove duplicate element in slices.
func FilterFloat32s ¶
FilterFloat32s applies a fn to each element of s, return a slices of make fn true.
func FilterFloat64s ¶
FilterFloat64s applies a fn to each element of s, return a slices of make fn true.
func FilterInt16s ¶
FilterInt16s applies a fn to each element of s, return a slices of make fn true.
func FilterInt32s ¶
FilterInt32s applies a fn to each element of s, return a slices of make fn true.
func FilterInt64s ¶
FilterInt64s applies a fn to each element of s, return a slices of make fn true.
func FilterInt8s ¶
FilterInt8s applies a fn to each element of s, return a slices of make fn true.
func FilterInts ¶
FilterInts applies a fn to each element of s, return a slices of make fn true.
func FilterStrings ¶
FilterStrings applies a fn to each element of s, return a slices of make fn true.
Types ¶
This section is empty.