1
0
mirror of https://github.com/kataras/iris.git synced 2025-12-21 03:47:04 +00:00

add new ':email' path parameter and revert the jsoniter removal

This commit is contained in:
Gerasimos (Makis) Maropoulos
2021-10-13 16:22:22 +03:00
parent a9b97e005a
commit bf54d33a3e
15 changed files with 179 additions and 101 deletions

View File

@@ -53,6 +53,10 @@ func (r *RequestParams) Get(key string) string {
return v // it should always be string here on :string parameter.
}
if v, ok := kv.ValueRaw.(fmt.Stringer); ok {
return v.String()
}
return fmt.Sprintf("%s", kv.ValueRaw)
}
}