update example for validator v10 (go module)

Former-commit-id: dcd729ea0dc6775ca657db2950d2bda5d21388c1
This commit is contained in:
Gerasimos (Makis) Maropoulos 2020-04-07 19:27:49 +03:00
parent f03afeef2f
commit ee4213f72d

View File

@ -1,13 +1,13 @@
// Package main shows the validator(latest, version 9) integration with Iris.
// You can find more examples like this at: https://github.com/go-playground/validator/blob/v9/_examples
// Package main shows the validator(latest, version 10) integration with Iris.
// You can find more examples like this at: https://github.com/go-playground/validator/blob/master/_examples
package main
import (
"fmt"
"github.com/kataras/iris/v12"
// $ go get gopkg.in/go-playground/validator.v9
"gopkg.in/go-playground/validator.v9"
// $ go get github.com/go-playground/validator/v10
"github.com/go-playground/validator/v10"
)
// User contains user information.