From 19d232cbf410c48fd3bf8123aed08a806f28f080 Mon Sep 17 00:00:00 2001 From: gonejack Date: Fri, 8 May 2020 20:39:36 +0800 Subject: [PATCH] go-mod: add page (#4003) Signed-off-by: gonejack --- pages/common/go-mod.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 pages/common/go-mod.md diff --git a/pages/common/go-mod.md b/pages/common/go-mod.md new file mode 100644 index 0000000000..bf0a99ca3d --- /dev/null +++ b/pages/common/go-mod.md @@ -0,0 +1,16 @@ +# go mod + +> Tool for module maintenance. +> More information: . + +- Download modules to local cache: + +`go mod download` + +- Add missing and remove unused modules: + +`go mod tidy` + +- Copy all dependencies into vendor directory: + +`go mod vendor`