News for hackers. Stuff that matters.
Re:Go 1.21 Released by 015a on Tuesday August 08, 2023 @02:35PM (#37053534)
The log/slog package is huge. I'm super happy to see them start-again to express opinions and solve more problem with just the standard library; and I hope to see more of it. This was Go's Thing at 1.0; you could build a production ready, large scale HTTP service with nothing but the standard library; and, probably, a structured logging package like Zap. Now; looks like we may not need it!

If anyone on the Go team is reading this; thanks! And, as hacker news must always be the armchair commentator, if I may ask for an addition in go 1.22: encoding/yaml. Build it in. Go and YAML are the languages of devops, and I've written so many scripts with JSON as a configuration file only because Go has a JSON parser built-in, but not YAML.

Re:Go 1.21 Released by liggitt on Tuesday August 08, 2023 @02:56PM (#37053805)
> if I may ask for an addition in go 1.22: encoding/yaml

FYI, encoding/yaml was recently requested, and was declined in https://github.com/golang/go/issues/61023#issuecomment-16106..., for reasons I largely agree with.

(I work for Google but not on Go)

Re:Go 1.21 Released by masklinn on Wednesday August 09, 2023 @03:14AM (#37059580)
> I've written so many scripts with JSON as a configuration file only because Go has a JSON parser built-in, but not YAML.

Sounds like a feature. Less Yaml in the world is a good thing.