Versions in this module Expand all Collapse all v1 v1.2.0 Dec 13, 2019 Changes in this version + func Capitalize(str string) string + func EndsWith(str string, target string) bool + func EndsWithFrom(str string, target string, position int) bool + func Escape(str string) string + func EscapeRegExp(str string) string + func LowerFirst(str string) string + func Pad(str string, length int) string + func PadLeft(str string, length int) string + func PadLeftWith(str string, length int, padChars string) string + func PadRight(str string, length int) string + func PadRightWith(str string, length int, padChars string) string + func PadWith(str string, length int, padChars string) string + func Repeat(str string, count int) string + func Replace(source string, target string, newStr string) string + func ReplaceRegx(source string, pattern string, newStr string) (string, error) + func Split(str string, separator string) []string + func SplitWithCountLimit(str string, separator string, n int) []string + func StartsWith(str string, target string) bool + func StartsWithFrom(str string, target string, position int) bool + func ToLower(str string) string + func ToUpper(str string) string + func Trim(str string) string + func TrimEnd(str string) string + func TrimEndWith(str string, trimChars string) string + func TrimStart(str string) string + func TrimStartWith(str string, trimChars string) string + func TrimWith(str string, trimChars string) string + func Unescape(str string) string + func UpperFirst(str string) string v1.1.0 Dec 12, 2019 Changes in this version + func CamelCase(str string) (string, error) + func CamelCaseWithInit(str string, upperCase InitCamelCase) (string, error) + func Ternary(satisfy bool, truthyValue interface{}, falsyValue interface{}) interface + type InitCamelCase bool + const LowerCase + const UpperCase v1.0.0 Dec 8, 2019 Changes in this version + func CountBy(items DashSlice, iteratee Iteratee) map[interface{}]int + func Every(items DashSlice, predicate Predicate) bool + func Fill(items DashSlice, fillValue interface{}) + func FillInRange(items DashSlice, value interface{}, start int, end int) + func Find(items DashSlice, predicate Predicate) (interface{}, bool) + func FindFrom(items DashSlice, predicate Predicate, start int) (interface{}, bool) + func FindIndex(items DashSlice, predicate Predicate) (int, bool) + func FindIndexWith(items DashSlice, element interface{}, comparison Comparison) (int, bool) + func FindLast(items DashSlice, predicate Predicate) (interface{}, bool) + func FindLastFrom(items DashSlice, predicate Predicate, start int) (interface{}, bool) + func FindLastIndex(items DashSlice, predicate Predicate) (int, bool) + func FindLastIndexWith(items DashSlice, element interface{}, comparison Comparison) (int, bool) + func First(items DashSlice) interface + func FromPairs(pairs []DashSlice) map[interface{}]interface + func GroupBy(items DashSlice, iteratee Iteratee) map[interface{}]DashSlice + func Head(items DashSlice) interface + func Identity(i interface{}) interface + func IdentityFloat64(i interface{}) float64 + func IdentityInt(i interface{}) int + func IdentityString(i interface{}) string + func Includes(items DashSlice, value interface{}) bool + func IndexOf(items DashSlice, element interface{}) (int, bool) + func Join(items DashSlice, separator string) string + func Last(items DashSlice) interface + func LastIndexOf(items DashSlice, element interface{}) (int, bool) + func Nth(items DashSlice, n int) interface + func Reduce(items DashSlice, reducer Reducer) interface + func ReduceRight(items DashSlice, reducer Reducer) interface + func ReduceRightWithInitial(items DashSlice, reducer Reducer, initial interface{}) interface + func ReduceWithInitial(items DashSlice, reducer Reducer, initial interface{}) interface + func Sample(items DashSlice) interface + func Size(items DashSlice) int + func Some(items DashSlice, predicate Predicate) bool + type Action func(interface{}, int) + type Comparison func(interface{}, interface{}) bool + type DashSlice []interface + func (ds DashSlice) Map(iteratee func(interface{}) interface{}) DashSlice + func Chunk(items DashSlice, size int) []DashSlice + func Compact(items DashSlice) DashSlice + func Concat(items DashSlice, newItems ...interface{}) DashSlice + func ConcatSlices(slices ...DashSlice) DashSlice + func Difference(items DashSlice, itemsToCompare ...interface{}) DashSlice + func DifferenceBy(items DashSlice, itemsToCompare DashSlice, iteratee Iteratee) DashSlice + func DifferenceWith(items DashSlice, itemsToCompare DashSlice, comparison Comparison) DashSlice + func Drop(items DashSlice, count int) DashSlice + func DropRight(items DashSlice, count int) DashSlice + func DropWhile(items DashSlice, predicate Predicate) DashSlice + func Each(items DashSlice, action Action) DashSlice + func EachRight(items DashSlice, action Action) DashSlice + func Filter(items DashSlice, predicate Predicate) DashSlice + func FlatMap(items DashSlice, iteratee Iteratee) DashSlice + func FlatMapDeep(items DashSlice, iteratee Iteratee) DashSlice + func FlatMapDepth(items DashSlice, iteratee Iteratee, depth int) DashSlice + func Flatten(items DashSlice) DashSlice + func FlattenDeep(items DashSlice) DashSlice + func FlattenDepth(items DashSlice, depth int) DashSlice + func ForEach(items DashSlice, action Action) DashSlice + func ForEachRight(items DashSlice, action Action) DashSlice + func Initial(items DashSlice) DashSlice + func Intersection(items1 DashSlice, items2 DashSlice) DashSlice + func IntersectionBy(items1 DashSlice, items2 DashSlice, iteratee Iteratee) DashSlice + func IntersectionWith(items1 DashSlice, items2 DashSlice, comparison Comparison) DashSlice + func Map(items DashSlice, iteratee Iteratee) DashSlice + func NewDashSlice(items ...interface{}) DashSlice + func NewDashSliceFromIntArray(items ...int) DashSlice + func Pull(items *DashSlice, values ...interface{}) DashSlice + func PullAll(items *DashSlice, values DashSlice) DashSlice + func PullAllWith(items *DashSlice, values DashSlice, comparison Comparison) DashSlice + func PullAt(items *DashSlice, indices ...int) DashSlice + func Reject(items DashSlice, predicate Predicate) DashSlice + func Remove(items *DashSlice, predicate Predicate) DashSlice + func Reverse(items DashSlice) DashSlice + func SampleSize(items DashSlice, n int) DashSlice + func Shuffle(items DashSlice) DashSlice + func Slice(items DashSlice, start int, end int) DashSlice + func SortByFloat64(items DashSlice, iteratee IterateeToFloat) DashSlice + func SortByInt(items DashSlice, iteratee IterateeToInt) DashSlice + func SortByString(items DashSlice, iteratee IterateeToString) DashSlice + func Tail(items DashSlice) DashSlice + func Take(items DashSlice, n int) DashSlice + func TakeRight(items DashSlice, n int) DashSlice + func TakeRightWhile(items DashSlice, predicate Predicate) DashSlice + func TakeWhile(items DashSlice, predicate Predicate) DashSlice + func Union(slices ...DashSlice) DashSlice + func UnionBy(iteratee Iteratee, slices ...DashSlice) DashSlice + func UnionWith(comparison Comparison, slices ...DashSlice) DashSlice + func Uniq(items DashSlice) DashSlice + func UniqBy(items DashSlice, iteratee Iteratee) DashSlice + func UniqWith(items DashSlice, comparison Comparison) DashSlice + func Without(items DashSlice, values ...interface{}) DashSlice + func Xor(items ...DashSlice) DashSlice + func Zip(slices ...DashSlice) []DashSlice + func ZipWith(iteratee func([]interface{}) interface{}, slices ...DashSlice) DashSlice + type Iteratee func(interface{}) interface + type IterateeToFloat func(interface{}) float64 + type IterateeToInt func(interface{}) int + type IterateeToString func(interface{}) string + type Predicate func(interface{}) bool + type Reducer func(interface{}, interface{}) interface