diff options
| author | Michael Matloob <matloob@golang.org> | 2022-03-16 12:18:56 -0400 |
|---|---|---|
| committer | Michael Matloob <matloob@golang.org> | 2022-03-21 18:00:16 +0000 |
| commit | dc08095e2bad041d4d5b76726e6122e79383d496 (patch) | |
| tree | 87f5634812c29b704934984842049b3077fcbae7 /_content/doc/tutorial/workspaces.md | |
| parent | 927473651d7f0cd255c97d6775a299e03dd7e930 (diff) | |
| download | go-x-website-dc08095e2bad041d4d5b76726e6122e79383d496.tar.xz | |
_content/ref: update the modules reference for GOWORK
The -workfile flag's function has been absorbed by the GOWORK
environment variable. Update the workspaces reference to reflect that.
Also fix an error in the workspaces tutorial.
For golang/go#45713
Change-Id: Id8dc8bb8dc6458d03d7b947ec78d84263d9689e1
Reviewed-on: https://go-review.googlesource.com/c/website/+/393360
Trust: Michael Matloob <matloob@golang.org>
Run-TryBot: Michael Matloob <matloob@golang.org>
Reviewed-by: Bryan Mills <bcmills@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Beth Brown <ecbrown@google.com>
Diffstat (limited to '_content/doc/tutorial/workspaces.md')
| -rw-r--r-- | _content/doc/tutorial/workspaces.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/_content/doc/tutorial/workspaces.md b/_content/doc/tutorial/workspaces.md index a3452499..517b5d9e 100644 --- a/_content/doc/tutorial/workspaces.md +++ b/_content/doc/tutorial/workspaces.md @@ -190,7 +190,7 @@ add a new function to the `stringutil` package that we can use instead of `Rever We'll add a new function to uppercase a string to the `golang.org/x/example/stringutil` package. - Add a new folder to the `workspace/example/stringutil` directory containing the following contents: + Create a new file named `toupper.go` in the `workspace/example/stringutil` directory containing the following contents: ``` package stringutil @@ -230,7 +230,7 @@ add a new function to the `stringutil` package that we can use instead of `Rever From the workspace directory, run ``` - $ go run example/hello + $ go run example.com/hello HELLO ``` |
