mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-29 23:24:55 +02:00
go-clean: apply suggestions
Signed-off-by: gonejack <igonejack@gmail.com>
This commit is contained in:
parent
ae117a5437
commit
0f22991cb6
1 changed files with 5 additions and 9 deletions
|
@ -1,24 +1,20 @@
|
||||||
# go clean
|
# go clean
|
||||||
|
|
||||||
> Tool for removing object files and cached files.
|
> Remove object files and cached files.
|
||||||
> More information: <https://golang.org/cmd/go/>.
|
> More information: <https://golang.org/cmd/go/#hdr-Remove_object_files_and_cached_files>.
|
||||||
|
|
||||||
- Print the remove commands only:
|
- Print the remove commands only:
|
||||||
|
|
||||||
`go clean -n`
|
`go clean -n`
|
||||||
|
|
||||||
- Remove go build cache:
|
- Remove build cache:
|
||||||
|
|
||||||
`go clean -cache`
|
`go clean -cache`
|
||||||
|
|
||||||
- Remove all test results in the go build cache :
|
- Remove cached test results:
|
||||||
|
|
||||||
`go clean -testcache`
|
`go clean -testcache`
|
||||||
|
|
||||||
- Remove go module download cache:
|
- Remove module cache:
|
||||||
|
|
||||||
`go clean -modcache`
|
`go clean -modcache`
|
||||||
|
|
||||||
- Remove all:
|
|
||||||
|
|
||||||
`go clean -cache -testcache -modcache -i -r`
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue