How to read CSV file in Golang
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
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.
How to measure execution time in Golang
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.
How to generate a fixed length random string using Golang
How to generate a fixed length random string using Golang using a dictionary of chars.
How to generate random numbers in a range using Java
How to generate random numbers in a range using Java. A simple method using SecureRandom,
class.
Java 8 Streams filter examples
Java 8 Streams filter examples. Simple examples comparing the classic approach pre-Java 8 and using the new Java 8 functionalities.