I am using go 1.5.3. I ran this
go get -x github.com/goji/goji
and I am getting this error message:
git checkout master
package github.com/goji/goji
imports goji.io/internal: use of internal package not allowed
How do I resolve this ?
From that goji issue 13 , the right command is:
go get goji.io
That page http://goji.io/
has the go-import
meta directive:
<meta name="go-import" content="goji.io git https://github.com/goji/goji">
That way, go does not consider goji.io/internal
(see for instance router.go
) as trying to import internal package of a "third-party".
This issue illustrates the wrong internal import case:
You are not allowed to import internal package (or its subpackages) of a third party repo.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.