Even though I have GOPATH properly set, I still can\'t get \"go build\" or \"go run\" to find my own packages. What am I doing wrong?
GOPATH
$ echo $GO
In the recent go versions from 1.14 onwards, we have to do go mod vendor before building or running, since by default go appends -mod=vendor to the go commands. So after doing go mod vendor, if we try to build, we won't face this issue.
go mod vendor
-mod=vendor