Interval provide an implementation for different type of intervals. Currently supported:
go get github.com/normegil/interval
See Godoc. For examples, check test files.