20.1.17

go/doc/testdata

I kept getting this weird error when i accidentally imported go/doc/testdata into some code today.

plugin/pkg/hellp/xyz.go:35:2: found packages a (a0.go) and b (b.go) in /root/.gimme/versions/go1.7.4.linux.amd64/src/go/doc/testdata
It turns out that the entire purpose of a0.go and b.go is (i think) to provide a weird package strructure for testing.

Anyways.  Don't import it ! Its fundamentally unimportable .

http://stackoverflow.com/questions/14416275/golang-error-cant-load-package-package-my-prog-found-packages-my-prog-and-m

No comments:

Post a Comment