Golang time.Month type example
package time
Golang time.Month type usage example
package main
import (
"fmt"
"time"
)
func main() {
fmt.Println(time.January)
fmt.Println(time.February)
fmt.Println(time.March)
fmt.Println(time.April)
fmt.Println(time.May)
fmt.Println(time.June)
fmt.Println(time.July)
fmt.Println(time.August)
fmt.Println(time.September)
fmt.Println(time.October)
fmt.Println(time.November)
fmt.Println(time.December)
}
Output :
January
February
March
April
May
June
July
August
September
October
November
December
SEE ALSO : https://www.socketloop.com/tutorials/golang-how-to-get-year-month-and-day
Reference :
http://golang.org/pkg/time/#Month
Advertisement
Something interesting
Tutorials
+13.3k Golang : Date and Time formatting
+30.8k Golang : Download file example
+6.1k Java : Human readable password generator
+7k Golang : Takes a plural word and makes it singular
+5.4k Golang : Return multiple values from function
+8.3k Golang : Implementing class(object-oriented programming style)
+25.3k Golang : Convert uint value to string type
+5.4k Gogland : Datasource explorer
+14k Golang : convert rune to unicode hexadecimal value and back to rune character
+20.8k Golang : Underscore or snake_case to camel case example
+17.7k Golang : Read data from config file and assign to variables
+13.8k Generate salted password with OpenSSL example