aboutsummaryrefslogtreecommitdiff
path: root/_content
diff options
context:
space:
mode:
authorSean Liao <sean@liao.dev>2022-08-06 15:19:26 +0100
committerGopher Robot <gobot@golang.org>2022-08-26 17:39:38 +0000
commita45e5bbd5d1b59477672cd8e94a4ba30909b789f (patch)
tree8e86c601fc661c6587907f6a8cb5400e5bce828d /_content
parenta6a8edf7d307a2dba577866803f4d6c7ec292621 (diff)
downloadgo-x-website-a45e5bbd5d1b59477672cd8e94a4ba30909b789f.tar.xz
_content: consistently use main module instead of root module
Fixes golang/go#52227 Change-Id: I9b5211a071eb92a8629d8f97c5f3842ae0ec6b37 Reviewed-on: https://go-review.googlesource.com/c/website/+/421895 Auto-Submit: Bryan Mills <bcmills@google.com> Run-TryBot: hopehook <hopehook@qq.com> Reviewed-by: David Chase <drchase@google.com> Reviewed-by: hopehook <hopehook@qq.com> TryBot-Result: Gopher Robot <gobot@golang.org> Reviewed-by: Bryan Mills <bcmills@google.com>
Diffstat (limited to '_content')
-rw-r--r--_content/blog/get-familiar-with-workspaces.md4
-rw-r--r--_content/ref/mod.md4
2 files changed, 4 insertions, 4 deletions
diff --git a/_content/blog/get-familiar-with-workspaces.md b/_content/blog/get-familiar-with-workspaces.md
index 8f8914ba..86d16ce4 100644
--- a/_content/blog/get-familiar-with-workspaces.md
+++ b/_content/blog/get-familiar-with-workspaces.md
@@ -21,7 +21,7 @@ changes.
[Workspaces](https://go.dev/ref/mod#workspaces) in Go 1.18 let you work on
multiple modules simultaneously without having to edit `go.mod` files for each
-module. Each module within a workspace is treated as a root module when
+module. Each module within a workspace is treated as a main module when
resolving dependencies.
Previously, to add a feature to one module and use it in another module, you
@@ -248,4 +248,4 @@ documentation](https://pkg.go.dev/golang.org/x/tools/gopls#readme-editors).
[workspace maintenance documentation](https://pkg.go.dev/cmd/go#hdr-Workspace_maintenance).
- Explore module commands for [working outside of a single
module](https://go.dev/ref/mod#commands-outside) including `go work init`,
- `go work sync` and more. \ No newline at end of file
+ `go work sync` and more.
diff --git a/_content/ref/mod.md b/_content/ref/mod.md
index 9c60bcbe..33b11f02 100644
--- a/_content/ref/mod.md
+++ b/_content/ref/mod.md
@@ -1075,7 +1075,7 @@ have been [replaced](#go-mod-file-replace) using local filesystem paths.)
## Workspaces {#workspaces}
A <dfn>workspace</dfn> is a collection of modules on disk that are used as
-the root modules when running [minimal version selection (MVS)](#minimal-version-selection).
+the main modules when running [minimal version selection (MVS)](#minimal-version-selection).
A workspace can be declared in a [`go.work` file](#go-work-file) that specifies
relative paths to the module directories of each of the modules in the workspace.
@@ -4562,5 +4562,5 @@ letter `v` followed by a semantic version. See the section on
<a id="glos-workspace"></a>
**workspace:** A collection of modules on disk that are used as
-the root modules when running [minimal version selection (MVS)](#minimal-version-selection).
+the main modules when running [minimal version selection (MVS)](#minimal-version-selection).
See the section on [Workspaces](#workspaces)