📜  golang 从时间获取星期几 - Go 编程语言 - Go 编程语言代码示例
📅  最后修改于: 2022-03-11 14:45:02.238000             🧑  作者: Mango
代码示例1
weekday := time.Now().Weekday()
fmt.Println(weekday) // "Tuesday"
fmt.Println(int(weekday)) // "2"