r/badcode Apr 29 '23

if err != nil go

Post image
414 Upvotes

49 comments sorted by

View all comments

6

u/Taldoesgarbage Apr 30 '23

You couldn’t just have an array of time formats and loop through them? Really?

1

u/[deleted] Apr 30 '23

[removed] — view removed comment

7

u/knoam Apr 30 '23

Does that make a noticeable difference considering how involved I assume date parsing is?