# Functions
AddToLogFile appends the given field and value to the log file with the given filename.
Append applies a function to each element in a slice and returns a new slice with the results.
AppendToFile appends the given content to the file with the given filename.
No description provided by the author
No description provided by the author
No description provided by the author
CopyFile copies the file from the source path to the destination path.
No description provided by the author
DirExists checks if the directory with the given path exists.
EitherEqualsTo returns the first value if it is equal to a given value; otherwise, it returns the second value.
EitherOf returns the first non-nil value between two values.
Equal checks if two values are equal.
EqualIf checks if two values are equal based on a given equality function.
FileExists checks if the file with the given filename exists.
FileToLines reads the contents of the file with the given fileName and returns them as a slice of strings.
FilterFirst returns the first element of a pair.
FilterSecond returns the second element of a pair.
GenerateRanges generates a slice of ranges based on the length and number of threads.
No description provided by the author
GetCurrentDirectory returns the current working directory.
GetParentPath returns the parent path of the given key.
No description provided by the author
No description provided by the author
No description provided by the author
IfThen returns one of two values based on a condition.
IfThenDo executes one of two functions based on a condition.
IfThenDo1st returns one of two values based on a condition.
IfThenDo2nd returns one of two values based on a condition.
IfThenDoEither returns one of two values based on a condition.
No description provided by the author
IsHex checks if the given byte slice represents a valid hexadecimal string.
IsPath checks if the given path ends with a forward slash.
IsType checks if the given value is of the specified type.
No description provided by the author
MapFromSlice creates a map from an array of keys, with all values set to a specified value.
MapFromSliceBy creates a map from an array of values, with keys generated by a getter function, and all values set to a specified initial value.
MapKeys returns a slice containing all the keys of a map.
MapKVs takes a map as input and returns two slices, one containing the keys and the other containing the values of the map.
MapMoveIf moves key-value pairs from one map to another based on a condition.
MapRemoveIf removes key-value pairs from a map based on a condition.
MapValues returns a slice containing all the values of a map.
Max returns the maximum value between two values of type T.
MaxElement returns the index and the maximum element in a slice.
MergeMaps merges the key-value pairs from one map into another map.
Min returns the minimum value between two values of type T.
MinElement returns the minimum element in a slice, if there are multiple minimum elements, it returns the first one.
MoveFile moves the file from the source path to the destination path.
New creates a new instance of a given type and returns a pointer to it.
No description provided by the author
ParallelExecute executes the given tasks in parallel using goroutines.
ParallelForeach applies a function to each element in a slice in parallel using multiple threads.
ParallelWorker divides the total work into multiple ranges and assigns each range to a worker function.
No description provided by the author
Remainder calculates the remainder of dividing the total sum of the ASCII values of the characters in the key by numShards.
Reshape reshapes a slice into a 2D slice with a given number of columns.
Resize resizes a slice to a new length.
No description provided by the author
No description provided by the author
Swap swaps two values.
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
TrapSignal catches the SIGTERM and executes cb function.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author