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
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AllFloat32s ¶ added in v1.4.0
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 ¶ added in v1.4.0
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 ¶ added in v1.4.0
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 ¶ added in v1.4.0
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 ¶ added in v1.4.0
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 ¶ added in v1.4.0
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 ¶ added in v1.4.0
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 ¶ added in v1.4.0
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 ¶ added in v1.4.0
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 ¶ added in v1.4.0
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 ¶ added in v1.4.0
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 ¶ added in v1.4.0
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 ¶ added in v1.4.0
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 ¶ added in v1.4.0
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 ¶ added in v1.4.0
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 ¶ added in v1.4.0
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 ¶ added in v1.4.0
ContainFloat32s returns true if s contain e.
func ContainFloat64s ¶ added in v1.4.0
ContainFloat64s returns true if s contain e.
func ContainInt16s ¶ added in v1.4.0
ContainInt16s returns true if s contain e.
func ContainInt32s ¶ added in v1.4.0
ContainInt32s returns true if s contain e.
func ContainInt64s ¶ added in v1.4.0
ContainInt64s returns true if s contain e.
func ContainInt8s ¶ added in v1.4.0
ContainInt8s returns true if s contain e.
func ContainInts ¶ added in v1.4.0
ContainInts returns true if s contain e.
func ContainStrings ¶ added in v1.4.0
ContainStrings returns true if s contain e.
func ContainStringsIgnoreCase ¶ added in v1.4.0
ContainStringsIgnoreCase returns true if s contain e, ignore case of element.
func DistinctFloat32s ¶ added in v1.4.0
DistinctFloat32s remove duplicate element in slices.
func DistinctFloat64s ¶ added in v1.4.0
DistinctFloat64s remove duplicate element in slices.
func DistinctInt16s ¶ added in v1.4.0
DistinctInt16s remove duplicate element in slices.
func DistinctInt32s ¶ added in v1.4.0
DistinctInt32s remove duplicate element in slices.
func DistinctInt64s ¶ added in v1.4.0
DistinctInt64s remove duplicate element in slices.
func DistinctInt8s ¶ added in v1.4.0
DistinctInt8s remove duplicate element in slices.
func DistinctInts ¶ added in v1.4.0
DistinctInts remove duplicate element in slices.
func DistinctStrings ¶ added in v1.4.0
DistinctStrings remove duplicate element in slices.
func FilterFloat32s ¶ added in v1.4.0
FilterFloat32s applies a fn to each element of s, return a slices of make fn true.
func FilterFloat64s ¶ added in v1.4.0
FilterFloat64s applies a fn to each element of s, return a slices of make fn true.
func FilterInt16s ¶ added in v1.4.0
FilterInt16s applies a fn to each element of s, return a slices of make fn true.
func FilterInt32s ¶ added in v1.4.0
FilterInt32s applies a fn to each element of s, return a slices of make fn true.
func FilterInt64s ¶ added in v1.4.0
FilterInt64s applies a fn to each element of s, return a slices of make fn true.
func FilterInt8s ¶ added in v1.4.0
FilterInt8s applies a fn to each element of s, return a slices of make fn true.
func FilterInts ¶ added in v1.4.0
FilterInts applies a fn to each element of s, return a slices of make fn true.
Types ¶
This section is empty.