mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-29 23:24:55 +02:00
25 lines
401 B
Markdown
25 lines
401 B
Markdown
![]() |
# go clean
|
||
|
|
||
|
> Tool for removing object files and cached files.
|
||
|
> More information: <https://golang.org/cmd/go/>.
|
||
|
|
||
|
- Print the remove commands only:
|
||
|
|
||
|
`go clean -n`
|
||
|
|
||
|
- Remove go build cache:
|
||
|
|
||
|
`go clean -cache`
|
||
|
|
||
|
- Remove all test results in the go build cache :
|
||
|
|
||
|
`go clean -testcache`
|
||
|
|
||
|
- Remove go module download cache:
|
||
|
|
||
|
`go clean -modcache`
|
||
|
|
||
|
- Remove all:
|
||
|
|
||
|
`go clean -cache -testcache -modcache -i -r`
|