Standard library / time

time.Thursday

Named weekday constant representing Thursday; numeric value 4. Prefer the name to a magic number. Expected stdout: 'Thursday 4\n'.

Formal Syntax & Structure

go syntaxgo
const Thursday Weekday = 4

Working Example

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