mirror of https://github.com/go-python/gopy.git
bind/types: introduce bind.Type interface
This commit is contained in:
parent
f61b769412
commit
76c536b4e8
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue