//
// Workspace maintenance
//
-// Go workspace provides access to operations on workspaces.
+// Work provides access to operations on workspaces.
//
// Note that support for workspaces is built into many other commands, not
// just 'go work'.
// See 'go help modules' for information about Go's module system of which
// workspaces are a part.
//
+// See https://go.dev/ref/mod#workspaces for an in-depth reference on
+// workspaces.
+//
+// See https://go.dev/doc/tutorial/workspaces for an introductory
+// tutorial on workspaces.
+//
// A workspace is specified by a go.work file that specifies a set of
// module directories with the "use" directive. These modules are used as
// root modules by the go command for builds and related operations. A
// Version string
// }
//
-// See the workspaces design proposal at
-// https://go.googlesource.com/proposal/+/master/design/45713-workspace.md for
-// more information.
+// See the workspaces reference at https://go.dev/ref/mod#workspaces
+// for more information.
//
//
// Initialize workspace file
// Each argument path is added to a use directive in the go.work file. The
// current go version will also be listed in the go.work file.
//
+// See the workspaces reference at https://go.dev/ref/mod#workspaces
+// for more information.
+//
//
// Sync workspace build list to modules
//
// build list's version of each module is always the same or higher than
// that in each workspace module.
//
+// See the workspaces reference at https://go.dev/ref/mod#workspaces
+// for more information.
+//
//
// Add modules to workspace file
//
// were specified as arguments: namely, use directives will be added for
// directories that exist, and removed for directories that do not exist.
//
+// See the workspaces reference at https://go.dev/ref/mod#workspaces
+// for more information.
+//
//
// Compile and run Go program
//
var CmdWork = &base.Command{
UsageLine: "go work",
Short: "workspace maintenance",
- Long: `Go workspace provides access to operations on workspaces.
+ Long: `Work provides access to operations on workspaces.
Note that support for workspaces is built into many other commands, not
just 'go work'.
See 'go help modules' for information about Go's module system of which
workspaces are a part.
+See https://go.dev/ref/mod#workspaces for an in-depth reference on
+workspaces.
+
+See https://go.dev/doc/tutorial/workspaces for an introductory
+tutorial on workspaces.
+
A workspace is specified by a go.work file that specifies a set of
module directories with the "use" directive. These modules are used as
root modules by the go command for builds and related operations. A