You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
package main
func main(){
n := negroni.New()
n = A.AddMiddlewares(n)
...
}
package A
func AddMiddlewares(n *negroni.Negroni) *negroni.Negroni {
n.UseFunc(setContext())
n.UseFunc(newRelicRecorder())
n.UseFunc(cors())
n.UseFunc(recovery())
return n
}
What did you expect to see?
go 1.6.2
cannot use n (type *"github.com/ZZZ/XXXX/vendor/github.com/codegangsta/negroni".Negroni) as type *"github.com/codegangsta/negroni".Negroni in argument to A.AddMiddlewares
What did you see instead?
go 1.7beta
cannot use n (type *negroni.Negroni) as type *negroni.Negroni in argument to A.AddMiddlewares
The text was updated successfully, but these errors were encountered:
ianlancetaylor
changed the title
Error message with vendor folder not clear
cmd/go: error message with vendor folder not clear
Jun 13, 2016
I'm pretty sure this was reported again as #16133, which is fixed on tip. I'm going to close this. If this is still happening on tip, please provide clear instructions for how to reproduce it.
Please answer these questions before submitting your issue. Thanks!
go version
)?1.6.2 and 1.7beta1
go env
)?go 1.6.2
go 1.7beta
The text was updated successfully, but these errors were encountered: