go work use <moddirs...>

Add modules to workspace file

Arguments

NameDescription
moddirs

Options

NameDescription
-rThe -r flag searches recursively for modules in the argument directories, and the use command operates as if each of the directories were specified as arguments: namely, use directives will be added for directories that exist, and removed for directories that do not exist