I need to import external package from github “github.com/xy/packageX
” to MyProject/src/myProjcet.go
. So I added import “github.com/xy/packageX
” to myProject.go
. If I run go build, I get:
myProject.go:9:2: import “github.com/xy/packageX”: cannot find package
So I have to run go get
, and then go build
.
Is there a way, how it can be built without using of go get
? Or should I download it to MyProject/pkg
and added this link to myProject.go
? I am on Xubuntu 14.04.