I have difficulty querieing for users, which is defined as:
type User struct { ID int `db:\"id\" json:\"id\"` UserName st
Alright, I found the solution, thanks this answer. The problem goes by adding ?parseTime=true to the db mapper. Like this:
?parseTime=true
db, err := sqlx.Connect("mysql", "myuser:mypass@tcp(127.0.0.1:3306)/mydb?parseTime=true")