# Packages
utils slice manupulation Ref.
# Functions
CastSlice casts a slice of interface{} to specific type T.
CdBack returns back to previous path.
CdToThis changes `working directory` to the current directory of function that calls it.
No description provided by the author
No description provided by the author
No description provided by the author
DefaultParams creates Params with default values.
ErrorContains checks if the error message in out contains the text in want Ref.
FileSize returns length of given file using `os.Stat()` Ref.
No description provided by the author
IsNil checks whether is a variable of type interface{} is nil.
LogError logs error with the function name as well.
* // Makerange creates a sequence of number (range)
* // Ref.
MapRune maps ...
Merge merges 2 slices to a new slice.
MinMax returns min and max from input int array.
MinMax returns min and max from input int array.
NewIter creates a Iter from an input slice.
NewParams creates a new Params.
NewRuneIter creates a RuneIter.
NewRuneReader create a new of type `io.RuneReader`.
ReadAllLn reads all line by line from a file using bufio.scanner.
No description provided by the author
StringIndex returns index (start) for substring on a given string It returns -1 and error if not matching.
StringInSlice check whether given string is in a slice.
ToASCII converts string to ASCII form Ref.
ToGrapheme converts string to grapheme TODO: should we include this func? Ref: https://github.com/golang/go/issues/14820.
HandleError wraps original error message with function and source code position where error is captured.
WithParam adds a parameter option to Params.
No description provided by the author
Zip zips 2 slices in first and second arguments to third argument Ref: https://stackoverflow.com/questions/26957040
Usage Example a := []int{1, 2, 3, 4, 5, 6, 7, 8, 9, 0} b := []int{0, 9, 8, 7, 6, 5, 4, 3, 2, 1} c := [][2]int{}
e := zip(a, b, &c)
if e != nil { fmt.Println(e) return }
fmt.Println(c).
# Structs
Iter contains data and methods for an interator.
Params constructs function parameters similar to Python **kwargs.
RuneIter is rune iterator with Next() method.
No description provided by the author