How to read CSV file in Golang using reader from encoding/csv package. For this example we took an simple example of a CSV file containing three columns name, address and phone.
How to write CSV file in Golang using writer from encoding/csv package. For this example we took an simple example of a CSV file containing three columns name, address and phone.
To mesure the time used by an application in Golang or of a code section the functions time.Now() and time.Since() can be used.
In Golang there a are two libraries for generating random integers, one is a pseudo-random number generator (package math/rand) and the second one is cryptographically secure random number generator (package crypto/rand)
How to trim (remove) leading and trailing whitespace from string in Golang using the TrimSpace, Trim, TrimLeft, TrimRight methods from strings package.
How to split a string into slice using Golang. For a simple split by a singular character you can use Split() method from strings package. For more complex rules the regexp.Split() method can be used.