go-clean
remove object files and cached files
- Provided by: gccgo-go (Version: 2:1.18~0ubuntu2)
- Source: golang-defaults
- Report a bug
remove object files and cached files
go clean [-i] [-r] [-n] [-x] [packages]
Clean removes object files from package source directories. The go command builds most objects in a temporary directory, so go clean is mainly concerned with object files left by other tools or by manual invocations of go build.
If a package argument is given or the -i or -r flag is set, clean removes the following files from each of the source directories corresponding to the import paths:
In the list, DIR represents the final path element of the directory, and MAINFILE is the base name of any Go source file in the directory that is not included when building the package.
For more about build flags, see go-build(1).
For more about specifying packages, see go-packages(7).
This manual page was written by Michael Stapelberg <stapelberg@debian.org> and is maintained by the Debian Go Compiler Team <team+go-compiler@tracker.debian.org> based on the output of 'go help clean' for the Debian project (and may be used by others).