I am trying to alias empty interface in one package so it could be used in
several other packages:
in "myproject/common/common.go"
package common
type Any interface{}
But when i try to use it from another package "myproject/myutil/myutil.go"
*package myutil*
*import (*
*"*myproject/common"
)
var a *Any
I have compilation error:
imported and not used: "myproject/common"
undefined: Any
I declared type Any with capital 'A', so it's supposed to be visible from other
packages... Where's the error?
--
You received this message because you are subscribed to the Google Groups
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.