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