麻烦,要是有一个命令就好了,找一下
It's safe to just delete the source directory and compiled package file. Find the source directory under
example
go get github.com/golang/mock/mockgen
go clean -i github.com/golang/mock/mockgen
The -i flag causes clean to remove the corresponding installed
archive or binary (what 'go install' would create).
The -n flag causes clean to print the remove commands it would execute,
but not run them.
The -r flag causes clean to be applied recursively to all the
dependencies of the packages named by the import paths.
The -x flag causes clean to print remove commands as it executes them.
不知道安装的packagePath的话,找一下$GOPATH/pkg/windows_amd64啥的
$GOPATH/src
and the package file under $GOPATH/pkg/<architecture>
, for example: $GOPATH/pkg/windows_amd64
.example
go get github.com/golang/mock/mockgen
go clean -i github.com/golang/mock/mockgen
The -i flag causes clean to remove the corresponding installed
archive or binary (what 'go install' would create).
The -n flag causes clean to print the remove commands it would execute,
but not run them.
The -r flag causes clean to be applied recursively to all the
dependencies of the packages named by the import paths.
The -x flag causes clean to print remove commands as it executes them.
不知道安装的packagePath的话,找一下$GOPATH/pkg/windows_amd64啥的