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