mirror of
https://github.com/kataras/iris.git
synced 2025-01-23 18:51:03 +01:00
9 lines
186 B
Go
9 lines
186 B
Go
|
package reflex
|
||
|
|
||
|
import "reflect"
|
||
|
|
||
|
// IsError reports whether "typ" is an error type.
|
||
|
func IsError(typ interface{ Implements(reflect.Type) bool }) bool {
|
||
|
return typ.Implements(ErrTyp)
|
||
|
}
|