Standard library / time

time.July

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

Formal Syntax & Structure

go syntaxgo
const July Month = 7

Working Example

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