mirror of
https://github.com/kataras/iris.git
synced 2026-01-08 20:41:57 +00:00
add uint8 parameter type, and mvc and hero - this commit may be a point of tutorial on how to add a completely new type from scratch to the hero for future contributors
Former-commit-id: dc7a7e6c97ef0c644a22e92072e4bdb98ae10582
This commit is contained in:
@@ -44,6 +44,13 @@ func resolveParam(currentParamIndex int, typ reflect.Type) (reflect.Value, bool)
|
||||
entry, _ := ctx.Params().GetEntryAt(currentParamIndex)
|
||||
v, _ := entry.Int64Default(0)
|
||||
|
||||
return v
|
||||
}
|
||||
case reflect.Uint8:
|
||||
fn = func(ctx context.Context) uint8 {
|
||||
entry, _ := ctx.Params().GetEntryAt(currentParamIndex)
|
||||
v, _ := entry.Uint8Default(0)
|
||||
|
||||
return v
|
||||
}
|
||||
case reflect.Uint64:
|
||||
|
||||
Reference in New Issue
Block a user