在Ubuntu上清理Golang编译缓存,可使用以下方法:
go clean -cache
rm -rf $GOPATH/pkg/mod/*
rm -rf $GOCACHE/*
$GOCACHE
$HOME/go-build