We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 003fde1 commit 49e125dCopy full SHA for 49e125d
gopls/doc/workspace.md
@@ -34,12 +34,14 @@ 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
+workspace:
40
-```
41
+```sh
42
cd $WORK
43
go work init
-go work use tools tools/gopls
44
+go work use ./tools/ ./tools/gopls/
45
```
46
47
...followed by opening the `$WORK` directory in our editor.
0 commit comments