How do I get a period between two dates?
d1, _ := time.Parse(time.RFC3339, "2018-10-27T00:00:00Z")
d2, _ := time.Parse(time.RFC3339, "2018-10-28T00:00:00Z")
// Não funciona.
fmt.Println(d2 - d1)
How do I get a period between two dates?
d1, _ := time.Parse(time.RFC3339, "2018-10-27T00:00:00Z")
d2, _ := time.Parse(time.RFC3339, "2018-10-28T00:00:00Z")
// Não funciona.
fmt.Println(d2 - d1)