Gopls release v0.23.0 (expected July 2026)
Configuration changes
The errorsastype analyzer added in the previous release (which
detects shadowing mistakes using errors.AsType) was renamed to
errorsastypeshadow to avoid an unfortunate conflict with a
modernizer of the same name, which suggests fixes to replace calls to
errors.As by AsType.
Web-based features
Editing features
Analysis features
sqlrowserr analyzer
The sqlrowserr analyzer reports failure to call the Err
method after calling the Next method of sql.Rows in a loop.
Code transformation features
“Add test for func” uses t.Context()
When the function or method under test takes context.Context as its
first parameter and the module is on Go 1.24 or later, the generated
test now passes t.Context() instead of context.Background().
Modules on older Go versions continue to receive context.Background().
The source files for this documentation can be found beneath golang.org/x/tools/gopls/doc.