commands.sh

go clean

all

Remove object files and cached files.

More info →

Examples (4)

Print the remove commands instead of actually removing anything

Delete the build cache

go clean -cache

Delete all cached test results

go clean -testcache

Delete the module cache

go clean -modcache
made by @shridhargupta | data from tldr-pages