.gitignore added
[dotfiles/.git] / .config / coc / extensions / coc-go-data / tools / pkg / mod / golang.org / x / tools / gopls@v0.6.9 / doc / advanced.md
1 # Advanced topics
2
3 This documentation is for advanced `gopls` users, who may want to test
4 unreleased versions or try out special features.
5
6 ## Installing unreleased versions
7
8 To get a specific version of `gopls` (for example, to test a prerelease
9 version), run:
10
11 ```sh
12 GO111MODULE=on go get golang.org/x/tools/gopls@vX.Y.Z
13 ```
14
15 Where `vX.Y.Z` is the desired version.
16
17 ### Unstable versions
18
19 To update `gopls` to the latest **unstable** version, use:
20
21 ```sh
22 GO111MODULE=on go get golang.org/x/tools/gopls@master golang.org/x/tools@master
23 ```
24
25 ## Working on the Go source distribution
26
27 If you are working on the [Go project] itself, the `go` command that `gopls`
28 invokes will have to correspond to the version of the source you are working
29 on. That is, if you have checked out the Go project to `$HOME/go`, your `go`
30 command should be the `$HOME/go/bin/go` executable that you built with
31 `make.bash` or equivalent.
32
33 You can achieve this by adding the right version of `go` to your `PATH`
34 (`export PATH=$HOME/go/bin:$PATH` on Unix systems) or by configuring your
35 editor.
36
37 [Go project]: https://go.googlesource.com/go