|
1 |
| -gopls/v0.16.0 |
| 1 | +# gopls/v0.16.0 |
2 | 2 |
|
| 3 | +<!-- TODO: update this instruction once v0.16.0 is released --> |
3 | 4 | ```
|
4 |
| -go install golang.org/x/tools/[email protected] |
| 5 | +go install golang.org/x/tools/[email protected]-pre.1 |
5 | 6 | ```
|
6 | 7 |
|
| 8 | +This release includes several features and bug fixes, and is the first |
| 9 | +version of gopls to support Go 1.23. To install it, run: |
| 10 | + |
| 11 | +## New support policy; end of support for Go 1.19 and Go 1.20 |
| 12 | + |
| 13 | +This is the last release of gopls that may be built and used with Go 1.19 or Go |
| 14 | +1.20. If built or used with either of these Go versions, it will display |
| 15 | +a message advising the user to upgrade. |
| 16 | + |
| 17 | +Starting with [email protected], which will be released after Go 1.23.0 is released |
| 18 | +in August, installing gopls will require the latest version of the Go |
| 19 | +toolchain. Thanks to the [forward compatibility](https://go.dev/blog/toolchain) |
| 20 | +added to Go 1.21, any necessary toolchain upgrade should be handled |
| 21 | +automatically for users of Go 1.21 or later. This restriction is for _building_ |
| 22 | +gopls only -- we will continue to support command line integration with the |
| 23 | +last three major Go versions. Nonetheless, this is fewer than our previous policy |
| 24 | +of gopls supporting the last four major Go versions of installed toolchains. |
| 25 | + |
| 26 | +See the newly updated |
| 27 | +[support policy](https://github.com/golang/tools/tree/master/gopls#support-policy) |
| 28 | +for details. We expect that this change will significantly reduce our |
| 29 | +maintenance burden, and will help improve the stability of future gopls |
| 30 | +releases. Please comment on [issue #65917](https://go.dev/issue/65917) if you |
| 31 | +have concerns about this change. |
| 32 | + |
7 | 33 | ## Configuration Changes
|
8 | 34 |
|
9 | 35 | - The experimental "allowImplicitNetworkAccess" setting is deprecated (but not
|
|
12 | 38 |
|
13 | 39 | ## New features
|
14 | 40 |
|
| 41 | +### Go 1.23 support |
| 42 | + |
| 43 | +This version of gopls is the first to support new Go 1.23 language features, |
| 44 | +including |
| 45 | +[range-over-func](https://go.dev/wiki/RangefuncExperiment) iterators |
| 46 | +and support for the |
| 47 | +[`godebug` directive](https://go.dev/ref/mod#go-mod-file-godebug) |
| 48 | +in go.mod files. |
| 49 | + |
15 | 50 | ### Integrated documentation viewer
|
16 | 51 |
|
17 | 52 | Gopls now offers a "View package documentation" code action that opens
|
|
0 commit comments