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