Forrest logo
back to the go tool

go-clean:tldr:d7b1b

go-clean: Print the remove commands instead of actually removing anything.
$ go clean -n
try on your machine

The command "go clean -n" is used in the Go programming language to remove object files and cached files generated during the build process.

The "-n" flag is a shorthand for "--n" or "--no-op", which tells the Go clean command to perform a dry run instead of actually removing the files. In other words, it shows what files would be removed without actually deleting them.

This can be helpful to preview the list of files that would be deleted by the clean command before executing it. It allows you to verify whether the cleanup process is targeting the correct files and directories.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the go tool