When I put int as an argument to time.Date for month , it works ( Example ):
time.Date(2016, 1, 1, 0, 0, 0, 0, time.UTC)
Why, when I try to convert string to int , and then use this variable, I get an error:
cannot use mStr (type int) as type time.Month in argument to time.Date
Example: https://play.golang.org/p/-XFNZHK476
source share