go clean
suggest changego clean removes object files left in package source directories.
The go command usually builds in a temporary directory, so go clean is rarely needed for a normal module build. Flags such as -cache, -testcache, and -modcache clear those caches.
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents