Use of internal package not allowed in go1.5

163 views
Skip to first unread message

jkumav...@gmail.com

unread,
Nov 24, 2015, 8:38:21 AM11/24/15
to golang-nuts
I am getting an error "use of internal package not allowed" while building a package with go version 1.5.
cmd: go install toolsapi

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/
toolsapi/cache/
toolsapi/models/category.go
toolsapi/controllers/controller.go

I want to access a method of category.go in controller.go. What's the way to import the category.go and other files within controller package.


C Banning

unread,
Nov 24, 2015, 9:27:52 AM11/24/15
to golang-nuts, jkumav...@gmail.com
See the second paragraph in the 1.5 release notes: https://golang.org/doc/go1.5#go_command
Reply all
Reply to author
Forward
0 new messages