diff --git a/bind/types.go b/bind/types.go index 86da09d..6387047 100644 --- a/bind/types.go +++ b/bind/types.go @@ -8,15 +8,19 @@ import ( "golang.org/x/tools/go/types" ) -type Type interface { +type Object interface { Package() *Package - GoType() types.Type - GoName() string ID() string Doc() string + GoName() string Obj() types.Object } +type Type interface { + Object + GoType() types.Type +} + func needWrapType(typ types.Type) bool { switch typ.(type) { case *types.Struct: