go
tool for managing Go source code
- Provided by: golang-go (Version: 2:1.6-1ubuntu4)
- Source: golang-defaults
- Report a bug
tool for managing Go source code
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.
Specifically, 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 specifying packages, see go-packages(7).
This manual page was written by Michael Stapelberg <stapelberg@debian.org>, for the Debian project (and may be used by others).