_content/blog/go1.21rc.md
The Go 1.21 first Release Candidate (RC) is available today on the download page! Go 1.21 is packed with new features and improvements. Getting the RC (release candidate) allows you to experiment with it early, try it on your workloads, and report any issues before the final release (scheduled for August). Here are some notable changes and features in Go 1.21; for the full list, refer to the full release notes.
(Please note that the first RC for Go 1.21 is called go1.21rc2
because a bug was found and fixed after tagging go1.21rc1)
default.pgo is present in the main package’s directory, the go command
will use it to enable a PGO build. See the PGO documentation for
more details. We’ve measured the impact of PGO on a wide set of Go programs and
see performance improvements of 2-7%.go tool now supports backward
and forward language compatibility.In addition to the performance improvements when enabling PGO:
Go 1.21 adds an experimental port for WebAssembly System Interface (WASI),
Preview 1 (GOOS=wasip1, GOARCH=wasm).
To facilitate writing more general WebAssembly (WASM) code, the compiler also
supports a new directive for importing functions from the WASM host:
go:wasmimport.
Please download the Go 1.21 RC and try it! If you notice any problems, please file an issue.