1
0
mirror of https://github.com/kataras/iris.git synced 2025-12-21 11:57:02 +00:00

Conversion once at macros and their functions, internal changes required

Former-commit-id: 7b778cccfb7c0e30ca5e8106017ada065993aba5
This commit is contained in:
Gerasimos (Makis) Maropoulos
2018-09-27 03:17:45 +03:00
parent dc3c38b189
commit d6d27b2605
11 changed files with 338 additions and 279 deletions

View File

@@ -1,6 +1,7 @@
package context
import (
"fmt"
"reflect"
"strconv"
"strings"
@@ -33,7 +34,7 @@ func (r *RequestParams) GetEntry(key string) memstore.Entry {
// by the key-value params.
func (r *RequestParams) Visit(visitor func(key string, value string)) {
r.Store.Visit(func(k string, v interface{}) {
visitor(k, v.(string)) // always string here.
visitor(k, fmt.Sprintf("%v", v)) // always string here.
})
}