Go programming language announced the new 1.25 release on 12 August, 2025! Here’s the new features and how to install guide for Ubuntu & other Linux.
What’s New in Go 1.25:
- New
-http
option ingo doc
command. - Add new
-json
optiongo version
command. - New
go.mod ignore
directive to specify directories to ignore. - 2 new
go vet
analyzers:waitgroup
andhostport
. - New experimental garbage collector.
- Default GOMAXPROCS to the number of cgroup CPU bandwidth limit in Linux, if it’s lower than an the number of logical CPUs available.
- Generate debug information using DWARF 5.
- New
testing/synctest
package - Remove the notion of core types in the language specification.
- New
encoding/json/v2
andencoding/json/jsontext
packages. - Annotate anonymous memory mappings on Linux with Kernel that support it.
- New
-funcalign=N
linker option.
See the announcement for more changes in Go 1.25.