1
0
mirror of https://github.com/kataras/iris.git synced 2026-01-05 03:07:38 +00:00
Former-commit-id: c6f2c47cece55865b381df33950e6dfd8ccf882f
This commit is contained in:
Gerasimos (Makis) Maropoulos
2017-03-27 14:38:10 +03:00
parent a95a02a16a
commit 251eeb6bd0
4 changed files with 136 additions and 6 deletions

View File

@@ -41,7 +41,7 @@ app.Int.Set("min", minValidator)
```go
isVersionStrValidator := func() func(string) bool {
versions := []string("v1","v2")
versions := []string{"v1","v2"}
return func(paramValue string) bool {
for _, s := range versions {
if s == paramValue {