This question already has an answer here:
I was trying to parse a time time between utc string back to Go time. But I'm getting an error cannot parse " +0000 UTC" as "T"
.
stringTime := time.Now().UTC().String()
t, e := time.Parse(time.RFC3339, stringTime)
fmt.Println(e)
fmt.Println(t)
</div>
stringTime is not in RFC3339 format: https://golang.org/pkg/time/#Time.String
If you want to parse it, use the format in the link.