I am getting an error "use of internal package not allowed" while building a package with go version 1.5.
Error:
package toolsapi
imports toolsapi/cache
imports toolsapi/models
imports gopkg.in/mgo.v2
imports gopkg.in/mgo.v2-unstable/internal/scram: use of internal package not allowed
My directory structure:
toolsapi/
cache/
models/
controllers/
This works perfectly fine with version go1.4.3. can anyone help to resolve the issue. I couldn't find any solution over internet.