Documentation
¶
Index ¶
- func Between(values []int, value, beforeValue, afterValue int) bool
- func FilterInt(values *[]int, condition func(v int) bool) []int
- func FilterStrings(values *[]string, condition func(v string) bool) []string
- func IncludeInt(values []int, value int) bool
- func IncludeString(values []string, value string) bool
- func IntSliceEqual(f, s []int) bool
- func MapInt(values *[]int, f func(v int) int) []int
- func MapString(values *[]string, f func(v string) string) []string
- func Replace(values *[]int, old, new int) []int
- func StringSliceEqual(f, s []string) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FilterInt ¶
FilterStrings gets a slice of integers and returns a new one with values which passed condition check.
func FilterStrings ¶
FilterStrings gets a slice of strings and returns a new slice with values which passed condition check.
func IncludeInt ¶
IncludeInt checks if a value is present in a slice.
func IncludeString ¶
IncludeStrings checks if a value is present in a slice.
func IntSliceEqual ¶
IntSliceEqual checks if two slices of integers are equal
func Replace ¶
IncludeStrings replace a value with new value and returns a new slice without modifying original.
func StringSliceEqual ¶
StringSliceEqual checks if two slices of strings are equal
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.