Hi Peter,
Thanks for the function. I already wrote my own, but yours looks simpler.
What I was asking wasn't how to implement it though... I am curious if there's a reason the function isn't exported that I'm just not seeing. Did the developers just think nobody would need it given how simple it is to write your own with Date()?
--
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.
Feeding an invalid date to get
something useful, that might brake when the implementation of Date changes.
Saver would be to feed a valid date, with first of the month, then add one month, then subtract one day.
Or simply use the know rules for number of days in a month. They are not difficult.