From 76c536b4e8fde69f42553105afcbbf30cacc3bb1 Mon Sep 17 00:00:00 2001 From: Sebastien Binet Date: Tue, 28 Jul 2015 12:26:33 +0200 Subject: [PATCH] bind/types: introduce bind.Type interface --- bind/types.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/bind/types.go b/bind/types.go index 6bdee33..7946003 100644 --- a/bind/types.go +++ b/bind/types.go @@ -8,6 +8,14 @@ import ( "golang.org/x/tools/go/types" ) +type Type interface { + GoType() types.Type + GoName() string + ID() string + Doc() string + Obj() types.Object +} + func needWrapType(typ types.Type) bool { switch typ.(type) { case *types.Struct: