News for hackers. Stuff that matters.
Re:New in Go 1.20: wrapping multiple errors by moogly on Sunday December 11, 2022 @01:33PM (#33945923)
Well...

January 2nd?

or

January 2?

or

2 January?

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.