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() string

Return 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()) }
Go Reference