From dc08095e2bad041d4d5b76726e6122e79383d496 Mon Sep 17 00:00:00 2001 From: Michael Matloob Date: Wed, 16 Mar 2022 12:18:56 -0400 Subject: _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 Run-TryBot: Michael Matloob Reviewed-by: Bryan Mills TryBot-Result: Gopher Robot Reviewed-by: Beth Brown --- _content/doc/tutorial/workspaces.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to '_content/doc/tutorial/workspaces.md') 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 ``` -- cgit v1.3