go-clean

Remove object files and cached files.

TLDR

Print the remove commands instead of actually removing anything

$ go clean -n
copy

Delete the build cache

$ go clean -cache
copy

Delete all cached test results

$ go clean -testcache
copy

Delete the module cache

$ go clean -modcache
copy

Copied to clipboard
sandbox