1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-28 18:44:54 +02:00
tldr/pages/common/go-clean.md
gonejack be4d64baf2
go-clean: add page (#4003)
Signed-off-by: gonejack <igonejack@gmail.com>
2020-05-21 12:30:22 +01:00

401 B

go clean

Tool for removing object files and cached files. More information: https://golang.org/cmd/go/.

  • 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