Removing packages installed with go get

前端 未结 4 1541
忘了有多久
忘了有多久 2020-12-22 15:00

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:30

    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.

提交回复
热议问题