We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 350f1e2 commit cfd04a1Copy full SHA for cfd04a1
gopls/doc/workspace.md
@@ -34,12 +34,15 @@ your workspace root to the directory containing the `go.work` file.
34
35
For example, suppose this repo is checked out into the `$WORK/tools` directory.
36
We can work on both `golang.org/x/tools` and `golang.org/x/tools/gopls`
37
-simultaneously by creating a `go.work` file:
+simultaneously by creating a `go.work` file using `go work init`, followed by
38
+`go work use MODULE_DIRECTORIES...` to add directories containing `go.mod` files to the
39
-```
40
+workspace:
41
+
42
+```sh
43
cd $WORK
44
go work init
-go work use tools tools/gopls
45
+go work use ./tools/ ./tools/gopls/
46
```
47
48
...followed by opening the `$WORK` directory in our editor.
0 commit comments