mirror of
https://github.com/kataras/iris.git
synced 2025-12-21 11:57:02 +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:
@@ -47,6 +47,11 @@ func makeFuncParamGetter(paramType ast.ParamType, paramName string) reflect.Valu
|
||||
v, _ := ctx.Params().GetInt64(paramName)
|
||||
return v
|
||||
}
|
||||
case ast.ParamTypeUint8:
|
||||
fn = func(ctx context.Context) uint8 {
|
||||
v, _ := ctx.Params().GetUint8(paramName)
|
||||
return v
|
||||
}
|
||||
case ast.ParamTypeUint64:
|
||||
fn = func(ctx context.Context) uint64 {
|
||||
v, _ := ctx.Params().GetUint64(paramName)
|
||||
|
||||
Reference in New Issue
Block a user