1
0
mirror of https://github.com/kataras/iris.git synced 2025-12-17 18:07:01 +00:00

one for today, one for tomorrow and ready :)

Former-commit-id: 2e0a335c84c1d9c57a61b7f3203e54f7cccd7dcc
This commit is contained in:
Gerasimos (Makis) Maropoulos
2017-12-30 20:40:52 +02:00
parent 75d710ce90
commit 64da28af8b
18 changed files with 320 additions and 2138 deletions

View File

@@ -132,6 +132,14 @@ func (s *Session) GetStringDefault(key string, defaultValue string) string {
if v, ok := value.(string); ok {
return v
}
if v, ok := value.(int); ok {
return strconv.Itoa(v)
}
if v, ok := value.(int64); ok {
return strconv.FormatInt(v, 10)
}
}
return defaultValue