Standard library / time

time.September

Named month constant representing September; numeric value 9. Prefer the name to a magic number. Expected stdout: 'September 9\n'.

Formal Syntax & Structure

go syntaxgo
const September Month = 9

Working Example

Example Snippetgo
package main
import (  "fmt"  "time")
func main() { fmt.Println(time.September, int(time.September)) }
Go Reference