modules and tools
go mod tidy
go vet ./...
gofmt -w .
go test ./...
All four were exercised while checking this series
go.mod
The module path and the go directive set the rules
Commit go.sum
A missing checksum file is a build that will break elsewhere
go vet
vet reports suspicious code that still compiles
Go 1.27 adds the stdversion check by default
Using a standard library symbol newer than the module’s Go version now gets reported
gofmt
Formatting is part of the language workflow, not a style debate Go 1.27 includes a column alignment fix, so a reformat after upgrade may touch whitespace
go doc
go doc pkg@version is new in 1.27
Useful when reading a specific dependency version without changing the module
Next
What changed in 10 current
Posted