Standard library / time
time.Weekday
Day of week; Sunday is 0 and Saturday is 6. Different from ISO weekday numbering. Expected stdout: '1\n'.
Formal Syntax & Structure
go syntaxgo
type Weekday intWorking Example
Example Snippetgo
package main
import ( "fmt" "time")
func main() { var d time.Weekday = time.Monday; fmt.Println(int(d)) }