The standard time package in Golang has many helper functions that can help you when you dealing with time conversion. Unix() function accepts an integer… Read More »Golang: How to Parse Unix Timestamp to time Type
Sorting a slice in golang is easy and the “sort” package is your friend. Sort package has a Slice() method: In this code example, we… Read More »Sort a Slice of Structs by a Field in Go
In Golang, we have lots of flags that can help us during running and testing software. By adding -run to your test command you can… Read More »Golang: How to run only a specific test?
Iterating over the keys of a map in Golang is so easy and you can do it by using a for-range loop. The only difference… Read More »Go: How to Iterate Over All the Keys of a Map?