gopls/doc: add information about supported Go versions
Fixes golang/go#39146
Change-Id: I89c2883d8e2d9e97e7b5212e61d54fc03e1c2298
Reviewed-on: https://go-review.googlesource.com/c/tools/+/253281
Reviewed-by: Robert Findley <rfindley@google.com>
diff --git a/gopls/doc/user.md b/gopls/doc/user.md
index 846503a..db10c2d 100644
--- a/gopls/doc/user.md
+++ b/gopls/doc/user.md
@@ -43,7 +43,9 @@
$ go get golang.org/x/tools/gopls@latest
go: cannot use path@version syntax in GOPATH mode
```
+
then run
+
```sh
GO111MODULE=on go get golang.org/x/tools/gopls@latest
```
@@ -56,12 +58,20 @@
latest **unstable** version, use:
```sh
-$ go get golang.org/x/tools/gopls@master golang.org/x/tools@master
+go get golang.org/x/tools/gopls@master golang.org/x/tools@master
```
In general, you should use `@latest` instead, to prevent frequent
breakages.
+### Supported Go versions
+
+`gopls` follows the
+[Go Release Policy](https://golang.org/doc/devel/release.html#policy),
+meaning that it officially supports the last 2 major Go releases. We run CI to
+verify that the `gopls` tests pass for the last 4 major Go releases, but do not
+prioritize issues only affecting legacy Go release (3 or 4 releases ago).
+
## Configurations
### Environment variables