mirror of
https://github.com/kataras/iris.git
synced 2025-12-21 20:07:04 +00:00
hero support for the new uint64
Former-commit-id: 0cd72427302afd50a18c88443f871db393429bfa
This commit is contained in:
@@ -44,6 +44,13 @@ func resolveParam(currentParamIndex int, typ reflect.Type) (reflect.Value, bool)
|
|||||||
entry, _ := ctx.Params().GetEntryAt(currentParamIndex)
|
entry, _ := ctx.Params().GetEntryAt(currentParamIndex)
|
||||||
v, _ := entry.Int64Default(0)
|
v, _ := entry.Int64Default(0)
|
||||||
|
|
||||||
|
return v
|
||||||
|
}
|
||||||
|
case reflect.Uint64:
|
||||||
|
fn = func(ctx context.Context) uint64 {
|
||||||
|
entry, _ := ctx.Params().GetEntryAt(currentParamIndex)
|
||||||
|
v, _ := entry.Uint64Default(0)
|
||||||
|
|
||||||
return v
|
return v
|
||||||
}
|
}
|
||||||
case reflect.Bool:
|
case reflect.Bool:
|
||||||
|
|||||||
Reference in New Issue
Block a user