Removing packages installed with go get

前端 未结 4 1973
[愿得一人]
[愿得一人] 2020-12-22 14:48

I ran go get package to download a package before learning that I needed to set my GOPATH otherwise that package sullies my root Go install (I woul

4条回答
  •  轮回少年
    2020-12-22 15:52

    It's safe to just delete the source directory and compiled package file. Find the source directory under $GOPATH/src and the package file under $GOPATH/pkg/, for example: $GOPATH/pkg/windows_amd64.

提交回复
热议问题