mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-22 05:22:09 +02:00
go-clean: add page (#4003)
Signed-off-by: gonejack <igonejack@gmail.com>
This commit is contained in:
parent
fe8743a067
commit
be4d64baf2
1 changed files with 24 additions and 0 deletions
24
pages/common/go-clean.md
Normal file
24
pages/common/go-clean.md
Normal file
|
@ -0,0 +1,24 @@
|
|||
# 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`
|
Loading…
Add table
Reference in a new issue