Currently I have a parameter like str := "github.com/pkg/errors"
. I need the full path to the package.
Currently how I achieve this is by using build.Default.GOPATH+"/src/"+str
.
Is there a native non hacky way of resolving the full path to an import (which could be in a vendor
folder etc...).