Skip to content

Commit c1ef9e2

Browse files
Minimal fork from upstream which removes a few dependencies. (#1)
1 parent 8f07b03 commit c1ef9e2

49 files changed

Lines changed: 17 additions & 31286 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ Use go get.
3131

3232
Then import the validator package into your own code.
3333

34-
import "github.com/go-playground/validator/v10"
34+
import "github.com/beautifulentropy/validator/v10"
3535

3636
Error Return Value
3737
-------

_examples/custom-validation/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package main
33
import (
44
"fmt"
55

6-
"github.com/go-playground/validator/v10"
6+
"github.com/beautifulentropy/validator/v10"
77
)
88

99
// MyStruct ..

_examples/custom/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import (
66
"fmt"
77
"reflect"
88

9-
"github.com/go-playground/validator/v10"
9+
"github.com/beautifulentropy/validator/v10"
1010
)
1111

1212
// DbBackedUser User struct

_examples/dive/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package main
33
import (
44
"fmt"
55

6-
"github.com/go-playground/validator/v10"
6+
"github.com/beautifulentropy/validator/v10"
77
)
88

99
// Test ...

_examples/gin-upgrading-overriding/v8_to_v9.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ import (
44
"reflect"
55
"sync"
66

7+
"github.com/beautifulentropy/validator/v10"
78
"github.com/gin-gonic/gin/binding"
8-
"github.com/go-playground/validator/v10"
99
)
1010

1111
type defaultValidator struct {

_examples/map-validation/main.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@ package main
22

33
import (
44
"fmt"
5-
"github.com/go-playground/validator/v10"
5+
6+
"github.com/beautifulentropy/validator/v10"
67
)
78

89
var validate *validator.Validate

_examples/simple/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package main
33
import (
44
"fmt"
55

6-
"github.com/go-playground/validator/v10"
6+
"github.com/beautifulentropy/validator/v10"
77
)
88

99
// User contains user information

_examples/struct-level/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import (
55
"reflect"
66
"strings"
77

8-
"github.com/go-playground/validator/v10"
8+
"github.com/beautifulentropy/validator/v10"
99
)
1010

1111
// User contains user information

_examples/struct-map-rules-validation/main.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@ package main
22

33
import (
44
"fmt"
5-
"github.com/go-playground/validator/v10"
5+
6+
"github.com/beautifulentropy/validator/v10"
67
)
78

89
type Data struct {

_examples/translations/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ package main
33
import (
44
"fmt"
55

6+
"github.com/beautifulentropy/validator/v10"
67
"github.com/go-playground/locales/en"
78
ut "github.com/go-playground/universal-translator"
8-
"github.com/go-playground/validator/v10"
99
en_translations "github.com/go-playground/validator/v10/translations/en"
1010
)
1111

0 commit comments

Comments
 (0)