Re:New in Go 1.20: wrapping multiple errors
by divan on Sunday December 11, 2022 @03:54PM
(#33947384)
Just remember the date and use it in your date formatting string.
If you want today to be printed as "December 11" put "January 2" in your Format() call.
If you want "11 December", put "2 January". No need to remember any alphabet mappings anymore, it's way simpler.
If you want today to be printed as "December 11" put "January 2" in your Format() call. If you want "11 December", put "2 January". No need to remember any alphabet mappings anymore, it's way simpler.