how to return if current day is weekday in golang code example
Example: golang get day of week from time
weekday := time.Now().Weekday()
fmt.Println(weekday) // "Tuesday"
fmt.Println(int(weekday)) // "2"
weekday := time.Now().Weekday()
fmt.Println(weekday) // "Tuesday"
fmt.Println(int(weekday)) // "2"