1
0
mirror of https://github.com/kataras/iris.git synced 2026-01-11 05:55:57 +00:00

README: update sponsors

This commit is contained in:
Gerasimos (Makis) Maropoulos
2022-06-21 00:25:43 +03:00
parent d1a1dacaff
commit 0d3024b486
3 changed files with 35 additions and 11 deletions

View File

@@ -48,7 +48,7 @@ func (r *RequestParams) Set(key, value string) {
// Get returns a path parameter's value based on its route's dynamic path key.
func (r *RequestParams) Get(key string) string {
for i := 0; i < len(r.Store); i++ {
for i := range r.Store {
if kv := r.Store[i]; kv.Key == key {
if v, ok := kv.ValueRaw.(string); ok {
return v // it should always be string here on :string parameter.