2 ms·
I’m used to parsing a date time with things like %Y-%m-%d not the asinine way Go does it.
by whalesalad 4y ago
I’m used to parsing a date time with things like %Y-%m-%d not the asinine way Go does it.
- abdusco 4y agoIf you're using JetBrains Goland, hit Ctrl+Space when you're writing the date layout in `time.Parse`, and it'll suggest you the regular YYYY, MM, dd etc. placeholders. When you pick one, it types in 2006, 01, 02 magic numbers. Here's a GIF: https://imgur.com/FyCJZvh https://imgur.com/FyCJZvh That said, I hate this, all the ways it's opinionated and praised zealously for it as the best thing since sliced bread.