rename to v2

This commit is contained in:
Ming Deng
2020-12-14 11:12:00 +08:00
parent a70f7fc920
commit 7bc6010604
241 changed files with 489 additions and 489 deletions

View File

@@ -17,7 +17,7 @@ package validation
import (
"reflect"
"github.com/beego/beego/core/validation"
"github.com/beego/beego/v2/core/validation"
)
const (

View File

@@ -15,7 +15,7 @@
// Package validation for validations
//
// import (
// "github.com/beego/beego/validation"
// "github.com/beego/beego/v2/validation"
// "log"
// )
//
@@ -50,7 +50,7 @@ import (
"fmt"
"regexp"
"github.com/beego/beego/core/validation"
"github.com/beego/beego/v2/core/validation"
)
// ValidFormer valid interface

View File

@@ -17,7 +17,7 @@ package validation
import (
"sync"
"github.com/beego/beego/core/validation"
"github.com/beego/beego/v2/core/validation"
)
// CanSkipFuncs will skip valid if RequiredFirst is true and the struct field's value is empty