Standard library / time
time.October
Named month constant representing October; numeric value 10. Prefer the name to a magic number. Expected stdout: 'October 10\n'.
Formal Syntax & Structure
go syntaxgo
const October Month = 10Working Example
Example Snippetgo
package main
import ( "fmt" "time")
func main() { fmt.Println(time.October, int(time.October)) }