mirror of
https://github.com/kataras/iris.git
synced 2026-01-08 04:21:57 +00:00
👔 next version: some linting
Former-commit-id: a102fbb90e2a8a8b09fcb9c9e0c370e4078b74d1
This commit is contained in:
@@ -1,12 +1,9 @@
|
||||
package hero
|
||||
|
||||
import (
|
||||
stdContext "context"
|
||||
"reflect"
|
||||
"time"
|
||||
|
||||
"github.com/kataras/iris/v12/context"
|
||||
"github.com/kataras/iris/v12/sessions"
|
||||
)
|
||||
|
||||
func valueOf(v interface{}) reflect.Value {
|
||||
@@ -45,7 +42,6 @@ func isFunc(kindable interface{ Kind() reflect.Kind }) bool {
|
||||
}
|
||||
|
||||
var inputTyp = reflect.TypeOf((*Input)(nil))
|
||||
var timeTyp = reflect.TypeOf((*time.Time)(nil)).Elem()
|
||||
|
||||
var errTyp = reflect.TypeOf((*error)(nil)).Elem()
|
||||
|
||||
@@ -69,20 +65,6 @@ func isContext(typ reflect.Type) bool {
|
||||
return typ.Implements(contextTyp)
|
||||
}
|
||||
|
||||
var stdContextTyp = reflect.TypeOf((*stdContext.Context)(nil)).Elem()
|
||||
|
||||
// isStdContext returns true if the "typ" is a type of standard Context.
|
||||
func isStdContext(typ reflect.Type) bool {
|
||||
return typ.Implements(stdContextTyp)
|
||||
}
|
||||
|
||||
var sessionTyp = reflect.TypeOf((*sessions.Session)(nil))
|
||||
|
||||
// isStdContext returns true if the "typ" is a type of standard Context.
|
||||
func isSession(typ reflect.Type) bool {
|
||||
return typ == sessionTyp
|
||||
}
|
||||
|
||||
var errorHandlerTyp = reflect.TypeOf((*ErrorHandler)(nil)).Elem()
|
||||
|
||||
func isErrorHandler(typ reflect.Type) bool {
|
||||
|
||||
Reference in New Issue
Block a user