mirror of https://github.com/go-python/gopy.git
14 lines
320 B
Go
14 lines
320 B
Go
// Copyright 2015 The go-python Authors. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style
|
|
// license that can be found in the LICENSE file.
|
|
|
|
package bind
|
|
|
|
import (
|
|
"golang.org/x/tools/go/types"
|
|
)
|
|
|
|
func isErrorType(typ types.Type) bool {
|
|
return typ == types.Universe.Lookup("error").Type()
|
|
}
|