Standard library / time
time.Weekday.String()
Return the English weekday name; invalid numeric values produce a diagnostic string. Expected stdout: 'Thursday\n'.
Formal Syntax & Structure
go syntaxgo
func (d Weekday) String() stringReturn Value
string
Return the English weekday name; invalid numeric values produce a diagnostic string.
Working Example
Example Snippetgo
package main
import ( "fmt" "time")
func main() { fmt.Println(time.Thursday.String()) }