Go 1.27(go.dev)
738 points by database64128 2 days ago | 261 comments
tl;dr: Go 1.27 adds three language updates: generic methods, struct literal keys that can reference embedded/nested fields, and generalized function type inference across composite literals, conversions, and channel sends. The standard library gains `encoding/json/v2` (which now backs v1 for faster unmarshaling), post-quantum ML-DSA signatures, native UUID support, and experimental SIMD packages. Runtime improvements include size-specialized allocation cutting small-object costs up to 30%, plus a generally available goroutine leak profiler.
HN Discussion:
  • Enthusiasm for the new UUID package and anticipation of ecosystem migration away from google/uuid
  • Appreciation for the post-quantum crypto additions and the team's proactive stance
  • Generic methods and improved type inference solve real ergonomic pain points
  • ~Struct literal field selector changes are welcome but could introduce subtle bugs with overlapping embedded fields
  • SIMD packages are exciting and work well with LLM-assisted code transpilation