mirror of
https://github.com/kataras/iris.git
synced 2025-01-24 03:01:03 +01:00
hero support for the new uint64
Former-commit-id: 0cd72427302afd50a18c88443f871db393429bfa
This commit is contained in:
parent
b019a281eb
commit
18c23e7d1e
|
@ -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:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user