Attempts set retry attempts.
No description provided by the author
No description provided by the author
CollectPointers iterates over |arr| and returns a new slice containing all references to the elements of |arr|.
CollectPointersIf iterates over |arr| and calling filterFunc on the element |elem|.
CompareInterfaceValues will compares |a| and |b| as type T.
Contains iterates over |arr| and returns true if an element in |arr| is equal to |item|.
CopySlice return a copy of |arr|.
DefaultValue is just an alias to ZeroedValue.
Delay sets retry delay.
DerefValues iterates over |arr| and return a new slice containing dereferenced values of the elements in |arr|.
DerefValuesIf iterates over |arr| and calls |filterFunc| on the element |elem|.
FilterSlice iterates over |arr| and calls |filterFunc| on each of the element |elem|.
GroupConsecutive *sorts* slice |s| in-place, and calls GroupConsecutiveSorted on |s|.
GroupConsecutiveSorted groups input numbers in slice []N |s| that are consecutive to each other (i.e.
InterfaceTo converts v from interface{} to T.
No description provided by the author
No description provided by the author
IsWellClosed validates if all surrounds are properly closed
# Examples (see unit test)
1.
LastErrorOnly sets retry option to only return the last error.
Map maps |arr| to a new slice using |mapFunc|.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Retry wraps retry with action string.
RetryWithReturn wraps |f| in a `func() error` and captures the T value in that function, and returns T returned by |f|.
Reverse returns a new slice, with elements being those of |arr| after being reversed.
ReverseInPlace reverses |arr| in-place.
SliceFromMapKeys collects map[K]V |m| into []K.
SliceFromMapKeysIf iterates over |m| and calls |f| with keys and values of |m|.
SliceFromMapValues collects map[K]V |m| into []V.
SliceFromMapValuesIf iterates over |m| and calls |f| with keys and values of |m|.
SlicesFromMap collects map[K]V |m| into ([]K, []V).
SlicesFromMapIf iterates over |m| and calls |f| with keys and values of |m|.
StopOnError sets a specific error, which, if seen when retrying, breaks the retry loop.
StringerToLowerString calls String() on s and returns the result of calling `strings.ToLower` on that string.
StringerToUpperString calls String() on s and returns the result of calling `strings.ToUpper` on that string.
No description provided by the author
No description provided by the author
No description provided by the author
ZeroedValue returns default, zeroed value of type T.