Posts tagged with go
-
How to convert byte array to string in Golang
In Go, you can convert a byte array to a string using the `string()` function. This function takes a byte array as an argument and returns a string.
-
How to measure execution time in Go
To measure execution time in Golang we use time.Now() and time.Since() functions. Some other functions we can use are, `.Sub()`, and `.UnixNano` among others.