From d1c24e9d4d6ff117e332f68f6202ba3c293bbfd9 Mon Sep 17 00:00:00 2001 From: Rodrigo Cesar de Freitas Dias Date: Fri, 7 May 2021 10:02:52 -0300 Subject: [PATCH] Adding command to clean cache. --- pages/go.mod.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pages/go.mod.tsx b/pages/go.mod.tsx index 184edf6..b650476 100644 --- a/pages/go.mod.tsx +++ b/pages/go.mod.tsx @@ -63,6 +63,8 @@ const GoModGuide: FC = () => { go mod tidy # organize and clean up go.mod and go.sum
# download deps into module cache
go mod download # download deps into module cache
+
# clean deps from module cache
+ go clean -cache -modcache # clean deps from module cache
# initialize new module
go mod init github.com/path/to/module # initialize new module
# why is the module a dependency?