feat(blog): add "What's New in Go 1.27" post - #256
Merged
Merged
Conversation
Covers the Go 1.27 release: generic methods, struct literal field selectors, generalized function type inference, encoding/json/v2, the new uuid and crypto/mldsa packages, the goroutine leak profile, and the toolchain changes. All code examples and their outputs were executed against go1.27rc3 on darwin/arm64 rather than transcribed from the release notes. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
go1.27rc3(darwin/arm64) instead of being transcribed from the release notesoverview.webpWhy
Go 1.27 is the first release in a while that changes the language itself — generic methods close the last major gap left by the 1.18 generics work, and struct literal field selectors resolve an issue that had been open since 2015. Alongside that,
encoding/jsonwas rebuilt on a new v2 implementation,uuidlanded in the standard library, and the goroutine leak profile went GA.Release notes tell you what changed but not what it feels like to use, where the sharp edges are, or which items are actually worth acting on first. This post fills that gap for readers deciding whether and how to upgrade.
Running everything against the release candidate also surfaced a correction worth having in writing: several summaries circulating online claim that
encoding/jsonv1 became stricter in 1.27 and now rejects duplicate keys and invalid UTF-8. It does not. v1 behavior is fully preserved —Unmarshalalways appliesDefaultOptionsV1()— and the stricter defaults belong to the new v2 package. The post documents the verified behavior.Changes
root/blog/whats-new-in-go1.27.mdpublic/assets/images/whats-new-in-go1.27/overview.webpasynctimerchanremoval and the new removed-GODEBUG policyencoding/jsonstructure and incremental migration path,uuid,crypto/mldsawith real key and signature sizes, experimentalsimd,hash/maphash.Hasher,httptest.NewTestServer+synctest.Sleep, plus the smallernet/http,strings,math/big, andnet/urladditionsgo fixmodernizers with an actual-diff,stdversioningo test,-jsonOutputType,go docimprovements,go mod tidyrequire-block merging🤖 Generated with Claude Code