No, t.Weekday() returns a time.Weekday, not a string. You can turn it
into an int with an int conversion: int(yourweekday).
You may be thinking it's a string because if how it's being formatted
when you inspect it (because a time.Weekday has a String method
defined on it).
> --
> You received this message because you are subscribed to the Google Groups
> "golang-nuts" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to
golang-nuts...@googlegroups.com.
> For more options, visit
https://groups.google.com/d/optout.