package
0.0.0-20210507122223-9cd4eef7d8e3
Repository: https://github.com/panduladw/go-frames.git
Documentation: pkg.go.dev
# Functions
Contains checks if given value contains in the array.
ConvertSizeToString will convert a number of bytes into a KB, MG, and GB string format respectively given the number of bytes.
ConvertToFloat will convert the given empty interface value to float64.
Difference returns the set difference of two slices with any given values.
Filter method creates an returns a new slice with all elements that pass the test implemented by the provided function.
FunctionNameWrapper returns a wrapper name with a given function name and a column name.
GenerateRandomSeries will generate n number of random integer values where n is in between [0, range_] using the seed value provided.
GetFunctionName will return the function name of the provided function.
GetRealSizeOf returns the number of bytes occupied by a given interface.
IsTimeSet checks if time is actually set or has been added by Go.
LinearSearch would search for the element in the given array and if the element is found it will return the index of the first occurrence in which it is found.
MaxIntSlice returns the maximum element of a given int array.
Range is a helper function which generates a sequence of numbers starting from the given start integer to the stop integer by the increment of the step integer.
RepeatIntoSlice takes in any empty interface element and a number of times it needs to be repeated.
ReverseArray reverses the given slice.
ToIntArray converts an array of empty interfaces to an int array.
ToInterfaceFromInt converts an array of int array to an empty interface array.
ToInterfaceFromString converts an array of string array to an empty interface array.
ValueCounts will find the duplicate elements from a given array of empty interfaces and will return a map containing a value count for each unique elements.
# Type aliases
Predicate is the definition of a function which takes in any element and returns a boolean.