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