From 55012d7276cbe8d8bad9634c89e4036b7735698d Mon Sep 17 00:00:00 2001 From: Sebastien Binet Date: Tue, 5 Jan 2016 15:17:39 +0100 Subject: [PATCH] bind: make Var implement Object --- bind/vars.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/bind/vars.go b/bind/vars.go index e660550..6411210 100644 --- a/bind/vars.go +++ b/bind/vars.go @@ -51,6 +51,11 @@ func getTypeString(t types.Type) string { return types.TypeString(t, func(*types.Package) string { return " " }) } +func (v *Var) Package() *Package { return v.pkg } +func (v *Var) ID() string { return v.id } +func (v *Var) Doc() string { return v.doc } +func (v *Var) GoName() string { return v.name } + func (v *Var) GoType() types.Type { return v.sym.goobj.Type() }