Package month provides functionality pertaining to months of the year. The package is designed with developer productivity in mind, encapsulating some of the more verbose features of underlying Go packages, and exposing them intuitively. Examples of this include the ability to return the last day of any given month.
go get github.com/daishisystems/month
// The last numeric day of January is 31
m := month.January
fmt.Printf("The last numeric day of %s is %d\n", m, m.LastDay(2015))
// The last numeric day of February is 28
m = month.February
fmt.Printf("The last numeric day of %s is %d\n", m, month.February.LastDay(2015))
// The last numeric day of February is 29
m = month.February
fmt.Printf("The last numeric day of %s is %d\n", m, m.LastDay(2008))
// The last numeric day of July is 31
m = month.July
fmt.Printf("The last numeric day of %s is %d\n", m, m.LastDay(2015))
Please reach out and contact me for questions, suggestions, or to just talk tech in general.