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