Documentation
¶
Index ¶
- func AllMatch(list interface{}, action matchFunc) bool
- func AnyMatch(list interface{}, action matchFunc) bool
- func FlatMapToStringSlice(list interface{}, action func(i int) []string) []string
- func ForEach(list interface{}, action func(i int))
- func IndexOf(list interface{}, match func(i int) bool) int
- func IsEmpty(collection interface{}) bool
- func IsNotEmpty(collection interface{}) bool
- func MapToFloat32Slice(list interface{}, action func(i int) float32) []float32
- func MapToFloat64Slice(list interface{}, action func(i int) float64) []float64
- func MapToInt64Slice(list interface{}, action func(i int) int64) []int64
- func MapToIntSlice(list interface{}, action func(i int) int) []int
- func MapToStringSlice(list interface{}, action func(i int) string) []string
- func MapToStringSliceIgnoreByCondition(list interface{}, action func(i int) string, condition func(s string) bool) []string
- func MapToStringSliceIgnoreEmpty(list interface{}, action func(i int) string) []string
- func NoneMatch(list interface{}, action matchFunc) bool
- func Sort(list interface{}, less func(i, j int) bool)
- func ToString(list interface{}) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FlatMapToStringSlice ¶ added in v0.3.9
func IsNotEmpty ¶
func IsNotEmpty(collection interface{}) bool
func MapToFloat32Slice ¶ added in v0.1.0
extract float32 field from list
func MapToFloat64Slice ¶ added in v0.1.0
extract float64 field from list
func MapToInt64Slice ¶ added in v0.1.0
extract int64 field from list
func MapToIntSlice ¶ added in v0.1.0
extract int field from list
func MapToStringSlice ¶ added in v0.1.0
MapToStringSlice extract string field from list
func MapToStringSliceIgnoreByCondition ¶ added in v0.1.6
func MapToStringSliceIgnoreEmpty ¶ added in v0.2.5
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.