go mod download <modules...>
Download the named modules into the module cache
Arguments
| Name | Description |
|---|---|
modules |
Options
| Name | Description |
|---|---|
-json | Print a sequence of JSON objects to standard output, describing each downloaded module (or failure) |
-x | Print the commands download executes to standard error |