diff --git a/pages/common/go-mod.md b/pages/common/go-mod.md index bf0a99ca3d..c02d2925c7 100644 --- a/pages/common/go-mod.md +++ b/pages/common/go-mod.md @@ -1,7 +1,11 @@ # go mod -> Tool for module maintenance. -> More information: . +> Module maintenance. +> More information: . + +- Initialize new module in current directory: + +`go mod init {{moduleName}}` - Download modules to local cache: @@ -11,6 +15,10 @@ `go mod tidy` -- Copy all dependencies into vendor directory: +- Verify dependencies have expected content: + +`go mod verify` + +- Copy all dependencies sources into vendor directory: `go mod vendor`