Standard library / time

time.Friday

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

Formal Syntax & Structure

go syntaxgo
const Friday Weekday = 5

Working Example

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