Go 1.27 is released

https://go.dev/blog/go1.27

11 points · 3 comments · view on lemmy.world

3 Comments

churrodestroyer@lemmy.zip · 4 pts · 2d

It's such a small thing, but not having to explicitly instantiate embedded structs to specify embedded fields is going to clean up a lot of my DB code because we embed an Auditable structure to handle common fields like id, createdBy, etc. I've been looking forward to that for years! Generic functions are cool too I guess.

cockmushroom@reddthat.com · 4 pts · 1d

Fina-fucken-leigh

Korkki@lemmy.ml · 1 pts · 1d

encoding/json/v2

Do we need to add "/v2" behind every json import statement in every old codebase to future proof that shit or does plain encoding/json use the v2 systems under the hood? I understood that nothing should break with this version at least?