From be4d64baf29d6db7a9f79e486155d8c70da9916c Mon Sep 17 00:00:00 2001 From: gonejack Date: Fri, 8 May 2020 20:40:44 +0800 Subject: [PATCH] go-clean: add page (#4003) Signed-off-by: gonejack --- pages/common/go-clean.md | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 pages/common/go-clean.md diff --git a/pages/common/go-clean.md b/pages/common/go-clean.md new file mode 100644 index 0000000000..44a42ee7e1 --- /dev/null +++ b/pages/common/go-clean.md @@ -0,0 +1,24 @@ +# go clean + +> Tool for removing object files and cached files. +> More information: . + +- Print the remove commands only: + +`go clean -n` + +- Remove go build cache: + +`go clean -cache` + +- Remove all test results in the go build cache : + +`go clean -testcache` + +- Remove go module download cache: + +`go clean -modcache` + +- Remove all: + +`go clean -cache -testcache -modcache -i -r`