mirror of
https://github.com/kataras/iris.git
synced 2025-03-13 21:36:28 +01:00
update example for validator v10 (go module)
Former-commit-id: dcd729ea0dc6775ca657db2950d2bda5d21388c1
This commit is contained in:
parent
f03afeef2f
commit
ee4213f72d
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue
Block a user