| 1 | --- |
| 2 | title: "Gopls release v0.23.0 (expected July 2026)" |
| 3 | --- |
| 4 | |
| 5 | ## Configuration changes |
| 6 | |
| 7 | The `errorsastype` analyzer added in the previous release (which |
| 8 | detects shadowing mistakes using `errors.AsType`) was renamed to |
| 9 | `errorsastypeshadow` to avoid an unfortunate conflict with a |
| 10 | modernizer of the same name, which suggests fixes to replace calls to |
| 11 | `errors.As` by `AsType`. |
| 12 | |
| 13 | The `gopls bug` subcommand has been removed, since no-one ever used it. |
| 14 | |
| 15 | ## Web-based features |
| 16 | |
| 17 | ## Editing features |
| 18 | |
| 19 | ## Analysis features |
| 20 | |
| 21 | ### `sqlrowserr` analyzer |
| 22 | <!-- golang/go#17747 --> |
| 23 | The `sqlrowserr` analyzer reports failure to call the `Err` |
| 24 | method after calling the `Next` method of `sql.Rows` in a loop. |
| 25 | |
| 26 | ## Code transformation features |
| 27 | |
| 28 | ### "Add test for func" uses `t.Context()` |
| 29 | <!-- golang/go#79647 --> |
| 30 | When the function or method under test takes `context.Context` as its |
| 31 | first parameter and the module is on Go 1.24 or later, the generated |
| 32 | test now passes `t.Context()` instead of `context.Background()`. |
| 33 | Modules on older Go versions continue to receive `context.Background()`. |