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