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 0f22991cb6
go-clean: apply suggestions
Signed-off-by: gonejack <igonejack@gmail.com>
2020-05-21 12:30:23 +01:00

335 B

go clean

Remove object files and cached files. More information: https://golang.org/cmd/go/#hdr-Remove_object_files_and_cached_files.

  • Print the remove commands only:

go clean -n

  • Remove build cache:

go clean -cache

  • Remove cached test results:

go clean -testcache

  • Remove module cache:

go clean -modcache