rename package name & fix bug

This commit is contained in:
jianzhiyao
2022-04-27 23:05:08 +08:00
parent 6fffb3196f
commit 978b7e4a9d
91 changed files with 231 additions and 251 deletions

View File

@@ -7,18 +7,18 @@ validation is a form validation for a data validation and error collecting using
Install:
go get github.com/astaxie/beego/validation
go get github.com/beego/beego/validation
Test:
go test github.com/astaxie/beego/validation
go test github.com/beego/beego/validation
## Example
Direct Use:
import (
"github.com/astaxie/beego/validation"
"github.com/beego/beego/validation"
"log"
)
@@ -49,7 +49,7 @@ Direct Use:
Struct Tag Use:
import (
"github.com/astaxie/beego/validation"
"github.com/beego/beego/validation"
)
// validation function follow with "valid" tag
@@ -81,7 +81,7 @@ Struct Tag Use:
Use custom function:
import (
"github.com/astaxie/beego/validation"
"github.com/beego/beego/validation"
)
type user struct {

View File

@@ -15,7 +15,7 @@
// Package validation for validations
//
// import (
// "github.com/astaxie/beego/validation"
// "github.com/beego/beego/validation"
// "log"
// )
//

View File

@@ -23,7 +23,7 @@ import (
"time"
"unicode/utf8"
"github.com/astaxie/beego/logs"
"github.com/beego/beego/logs"
)
// CanSkipFuncs will skip valid if RequiredFirst is true and the struct field's value is empty