bind/types: introduce bind.Type interface

This commit is contained in:
Sebastien Binet 2015-07-28 12:26:33 +02:00
parent f61b769412
commit 76c536b4e8
1 changed files with 8 additions and 0 deletions

View File

@ -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: