Remix.run Logo
candiddevmike 4 days ago

The way Go parses time strings by default is insane though, even the maintainers regret it. It's a textbook example of being too clever.

nkozyra 4 days ago | parent [-]

By choosing default values instead of templatized values?

Other than having to periodically remember what 0-padded milliseconds are or whatever this isn't a huge deal.

mdaniel 3 days ago | parent [-]

I'm not OP, but I also got tripped up the first time I saw time.Parse("2006-01-02 03:04:05") and was like what the actual?!

https://pkg.go.dev/time#Layout

peterashford 2 days ago | parent [-]

Yeah, that's ugly as fuck. I hate it