1
0
mirror of https://github.com/kataras/iris.git synced 2025-12-17 18:07:01 +00:00
Files
kararas_iris/x/reflex/error.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)
}