Recent Posts

Detract yet delight written farther his general. If in so bred at dare rose lose good. Feel and make two real miss use easy.
May 30, 2015
Golang: Reverse ISOWeek, get the date of the first day of ISO week

If you work with weeknummers, you can find the weeknumber of a date with the Golang function time.ISOWeek. However you wish to get the first date of a week, there is no such function in Google Go.┬áSo let's write it our selfs: func FirstDayOfISOWeek(year int, week int, timezone *time.Location) time.Time { date := time.Date(year, 0, […]

Read More
May 22, 2015
Golang: measure time to execute code

Sometimes you want to know how long it takes to execute a piece of code. This is how to do it Golang: func main() { start := time.Now() // Do something time consuming elapsed := time.Since(start) log.Printf("Time to execute code %s", elapsed) }  

Read More
XFerion Europe LLP
We build an maintain your software. From web to mobile. From MVP to extended product. Contact us if you wish to discuss a project.