diff --git a/go-playground/universal-translator/import_export.go b/go-playground/universal-translator/import_export.go index 7bd76f2..7cec0d0 100644 --- a/go-playground/universal-translator/import_export.go +++ b/go-playground/universal-translator/import_export.go @@ -9,7 +9,7 @@ import ( "io" - "github.com/go-playground/locales" + "git.ningdatech.com/ningda/gin_valid/go-playground/locales" ) type translation struct { diff --git a/go-playground/universal-translator/translator.go b/go-playground/universal-translator/translator.go index 37316f4..1d89cf9 100644 --- a/go-playground/universal-translator/translator.go +++ b/go-playground/universal-translator/translator.go @@ -5,7 +5,7 @@ import ( "strconv" "strings" - "github.com/go-playground/locales" + "git.ningdatech.com/ningda/gin_valid/go-playground/locales" ) const ( diff --git a/go-playground/universal-translator/universal_translator.go b/go-playground/universal-translator/universal_translator.go index dbf707f..6292194 100644 --- a/go-playground/universal-translator/universal_translator.go +++ b/go-playground/universal-translator/universal_translator.go @@ -3,7 +3,7 @@ package ut import ( "strings" - "github.com/go-playground/locales" + "git.ningdatech.com/ningda/gin_valid/go-playground/locales" ) // UniversalTranslator holds all locale & translation data diff --git a/go-playground/validator/v10/_examples/custom-validation/main.go b/go-playground/validator/v10/_examples/custom-validation/main.go index 6ba8ef2..03ddf79 100644 --- a/go-playground/validator/v10/_examples/custom-validation/main.go +++ b/go-playground/validator/v10/_examples/custom-validation/main.go @@ -3,7 +3,7 @@ package main import ( "fmt" - "github.com/go-playground/validator/v10" + "git.ningdatech.com/ningda/gin_valid/go-playground/validator/v10" ) // MyStruct .. diff --git a/go-playground/validator/v10/_examples/custom/main.go b/go-playground/validator/v10/_examples/custom/main.go index f44ef4c..2947b04 100644 --- a/go-playground/validator/v10/_examples/custom/main.go +++ b/go-playground/validator/v10/_examples/custom/main.go @@ -6,7 +6,7 @@ import ( "fmt" "reflect" - "github.com/go-playground/validator/v10" + "git.ningdatech.com/ningda/gin_valid/go-playground/validator/v10" ) // DbBackedUser User struct diff --git a/go-playground/validator/v10/_examples/dive/main.go b/go-playground/validator/v10/_examples/dive/main.go index 18b9e7f..efa5c17 100644 --- a/go-playground/validator/v10/_examples/dive/main.go +++ b/go-playground/validator/v10/_examples/dive/main.go @@ -3,7 +3,7 @@ package main import ( "fmt" - "github.com/go-playground/validator/v10" + "git.ningdatech.com/ningda/gin_valid/go-playground/validator/v10" ) // Test ... diff --git a/go-playground/validator/v10/_examples/gin-upgrading-overriding/v8_to_v9.go b/go-playground/validator/v10/_examples/gin-upgrading-overriding/v8_to_v9.go index 8c310a7..4f1fa14 100644 --- a/go-playground/validator/v10/_examples/gin-upgrading-overriding/v8_to_v9.go +++ b/go-playground/validator/v10/_examples/gin-upgrading-overriding/v8_to_v9.go @@ -4,8 +4,8 @@ import ( "reflect" "sync" + "git.ningdatech.com/ningda/gin_valid/go-playground/validator/v10" "github.com/gin-gonic/gin/binding" - "github.com/go-playground/validator/v10" ) type defaultValidator struct { diff --git a/go-playground/validator/v10/_examples/simple/main.go b/go-playground/validator/v10/_examples/simple/main.go index 0d3ca51..8586bac 100644 --- a/go-playground/validator/v10/_examples/simple/main.go +++ b/go-playground/validator/v10/_examples/simple/main.go @@ -3,7 +3,7 @@ package main import ( "fmt" - "github.com/go-playground/validator/v10" + "git.ningdatech.com/ningda/gin_valid/go-playground/validator/v10" ) // User contains user information diff --git a/go-playground/validator/v10/_examples/struct-level/main.go b/go-playground/validator/v10/_examples/struct-level/main.go index 3231a81..7b6f28e 100644 --- a/go-playground/validator/v10/_examples/struct-level/main.go +++ b/go-playground/validator/v10/_examples/struct-level/main.go @@ -5,7 +5,7 @@ import ( "reflect" "strings" - "github.com/go-playground/validator/v10" + "git.ningdatech.com/ningda/gin_valid/go-playground/validator/v10" ) // User contains user information diff --git a/go-playground/validator/v10/_examples/translations/main.go b/go-playground/validator/v10/_examples/translations/main.go index 6f9466d..b1b7b67 100644 --- a/go-playground/validator/v10/_examples/translations/main.go +++ b/go-playground/validator/v10/_examples/translations/main.go @@ -3,10 +3,10 @@ package main import ( "fmt" - "github.com/go-playground/locales/en" - ut "github.com/go-playground/universal-translator" - "github.com/go-playground/validator/v10" - en_translations "github.com/go-playground/validator/v10/translations/en" + "git.ningdatech.com/ningda/gin_valid/go-playground/locales/en" + ut "git.ningdatech.com/ningda/gin_valid/go-playground/universal-translator" + "git.ningdatech.com/ningda/gin_valid/go-playground/validator/v10" + en_translations "git.ningdatech.com/ningda/gin_valid/go-playground/validator/v10/translations/en" ) // User contains user information diff --git a/go-playground/validator/v10/errors.go b/go-playground/validator/v10/errors.go index 6038f34..7444849 100644 --- a/go-playground/validator/v10/errors.go +++ b/go-playground/validator/v10/errors.go @@ -6,7 +6,7 @@ import ( "reflect" "strings" - ut "github.com/go-playground/universal-translator" + ut "git.ningdatech.com/ningda/gin_valid/go-playground/universal-translator" ) const ( diff --git a/go-playground/validator/v10/non-standard/validators/notblank.go b/go-playground/validator/v10/non-standard/validators/notblank.go index 80c815f..57e71cb 100644 --- a/go-playground/validator/v10/non-standard/validators/notblank.go +++ b/go-playground/validator/v10/non-standard/validators/notblank.go @@ -4,7 +4,7 @@ import ( "reflect" "strings" - "github.com/go-playground/validator/v10" + "git.ningdatech.com/ningda/gin_valid/go-playground/validator/v10" ) // NotBlank is the validation function for validating if the current field diff --git a/go-playground/validator/v10/non-standard/validators/notblank_test.go b/go-playground/validator/v10/non-standard/validators/notblank_test.go index cc9d0c1..1d8bd21 100644 --- a/go-playground/validator/v10/non-standard/validators/notblank_test.go +++ b/go-playground/validator/v10/non-standard/validators/notblank_test.go @@ -3,8 +3,8 @@ package validators import ( "testing" - "github.com/go-playground/assert/v2" - "github.com/go-playground/validator/v10" + "git.ningdatech.com/ningda/gin_valid/go-playground/assert/v2" + "git.ningdatech.com/ningda/gin_valid/go-playground/validator/v10" ) type test struct { diff --git a/go-playground/validator/v10/translations/en/en.go b/go-playground/validator/v10/translations/en/en.go index 5a2c845..1ab53e1 100644 --- a/go-playground/validator/v10/translations/en/en.go +++ b/go-playground/validator/v10/translations/en/en.go @@ -8,9 +8,9 @@ import ( "strings" "time" - "github.com/go-playground/locales" - ut "github.com/go-playground/universal-translator" - "github.com/go-playground/validator/v10" + "git.ningdatech.com/ningda/gin_valid/go-playground/locales" + ut "git.ningdatech.com/ningda/gin_valid/go-playground/universal-translator" + "git.ningdatech.com/ningda/gin_valid/go-playground/validator/v10" ) // RegisterDefaultTranslations registers a set of default translations diff --git a/go-playground/validator/v10/translations/en/en_test.go b/go-playground/validator/v10/translations/en/en_test.go index 2b113c6..167b1ad 100644 --- a/go-playground/validator/v10/translations/en/en_test.go +++ b/go-playground/validator/v10/translations/en/en_test.go @@ -4,10 +4,10 @@ import ( "testing" "time" - . "github.com/go-playground/assert/v2" - english "github.com/go-playground/locales/en" - ut "github.com/go-playground/universal-translator" - "github.com/go-playground/validator/v10" + . "git.ningdatech.com/ningda/gin_valid/go-playground/assert/v2" + english "git.ningdatech.com/ningda/gin_valid/go-playground/locales/en" + ut "git.ningdatech.com/ningda/gin_valid/go-playground/universal-translator" + "git.ningdatech.com/ningda/gin_valid/go-playground/validator/v10" ) func TestTranslations(t *testing.T) { diff --git a/go-playground/validator/v10/translations/es/es.go b/go-playground/validator/v10/translations/es/es.go index 2b87f10..8df35ad 100644 --- a/go-playground/validator/v10/translations/es/es.go +++ b/go-playground/validator/v10/translations/es/es.go @@ -8,9 +8,9 @@ import ( "strings" "time" - "github.com/go-playground/locales" - ut "github.com/go-playground/universal-translator" - "github.com/go-playground/validator/v10" + "git.ningdatech.com/ningda/gin_valid/go-playground/locales" + ut "git.ningdatech.com/ningda/gin_valid/go-playground/universal-translator" + "git.ningdatech.com/ningda/gin_valid/go-playground/validator/v10" ) // RegisterDefaultTranslations registers a set of default translations diff --git a/go-playground/validator/v10/translations/es/es_test.go b/go-playground/validator/v10/translations/es/es_test.go index e3e9055..075e263 100644 --- a/go-playground/validator/v10/translations/es/es_test.go +++ b/go-playground/validator/v10/translations/es/es_test.go @@ -4,10 +4,10 @@ import ( "testing" "time" - . "github.com/go-playground/assert/v2" - spanish "github.com/go-playground/locales/es" - ut "github.com/go-playground/universal-translator" - "github.com/go-playground/validator/v10" + . "git.ningdatech.com/ningda/gin_valid/go-playground/assert/v2" + spanish "git.ningdatech.com/ningda/gin_valid/go-playground/locales/es" + ut "git.ningdatech.com/ningda/gin_valid/go-playground/universal-translator" + "git.ningdatech.com/ningda/gin_valid/go-playground/validator/v10" ) func TestTranslations(t *testing.T) { diff --git a/go-playground/validator/v10/translations/fr/fr.go b/go-playground/validator/v10/translations/fr/fr.go index ddebdf9..b27c588 100644 --- a/go-playground/validator/v10/translations/fr/fr.go +++ b/go-playground/validator/v10/translations/fr/fr.go @@ -8,9 +8,9 @@ import ( "strings" "time" - "github.com/go-playground/locales" - ut "github.com/go-playground/universal-translator" - "github.com/go-playground/validator/v10" + "git.ningdatech.com/ningda/gin_valid/go-playground/locales" + ut "git.ningdatech.com/ningda/gin_valid/go-playground/universal-translator" + "git.ningdatech.com/ningda/gin_valid/go-playground/validator/v10" ) // RegisterDefaultTranslations registers a set of default translations diff --git a/go-playground/validator/v10/translations/fr/fr_test.go b/go-playground/validator/v10/translations/fr/fr_test.go index 0006c8d..a9b76ba 100644 --- a/go-playground/validator/v10/translations/fr/fr_test.go +++ b/go-playground/validator/v10/translations/fr/fr_test.go @@ -4,10 +4,10 @@ import ( "testing" "time" - . "github.com/go-playground/assert/v2" - french "github.com/go-playground/locales/fr" - ut "github.com/go-playground/universal-translator" - "github.com/go-playground/validator/v10" + . "git.ningdatech.com/ningda/gin_valid/go-playground/assert/v2" + french "git.ningdatech.com/ningda/gin_valid/go-playground/locales/fr" + ut "git.ningdatech.com/ningda/gin_valid/go-playground/universal-translator" + "git.ningdatech.com/ningda/gin_valid/go-playground/validator/v10" ) func TestTranslations(t *testing.T) { diff --git a/go-playground/validator/v10/translations/id/id.go b/go-playground/validator/v10/translations/id/id.go index d185dfc..594e8c1 100644 --- a/go-playground/validator/v10/translations/id/id.go +++ b/go-playground/validator/v10/translations/id/id.go @@ -8,9 +8,9 @@ import ( "strings" "time" - "github.com/go-playground/locales" - ut "github.com/go-playground/universal-translator" - "github.com/go-playground/validator/v10" + "git.ningdatech.com/ningda/gin_valid/go-playground/locales" + ut "git.ningdatech.com/ningda/gin_valid/go-playground/universal-translator" + "git.ningdatech.com/ningda/gin_valid/go-playground/validator/v10" ) // RegisterDefaultTranslations registers a set of default translations diff --git a/go-playground/validator/v10/translations/id/id_test.go b/go-playground/validator/v10/translations/id/id_test.go index aa4f5c7..ae79a24 100644 --- a/go-playground/validator/v10/translations/id/id_test.go +++ b/go-playground/validator/v10/translations/id/id_test.go @@ -4,10 +4,10 @@ import ( "testing" "time" - . "github.com/go-playground/assert/v2" - indonesia "github.com/go-playground/locales/id" - ut "github.com/go-playground/universal-translator" - "github.com/go-playground/validator/v10" + . "git.ningdatech.com/ningda/gin_valid/go-playground/assert/v2" + indonesia "git.ningdatech.com/ningda/gin_valid/go-playground/locales/id" + ut "git.ningdatech.com/ningda/gin_valid/go-playground/universal-translator" + "git.ningdatech.com/ningda/gin_valid/go-playground/validator/v10" ) func TestTranslations(t *testing.T) { diff --git a/go-playground/validator/v10/translations/ja/ja.go b/go-playground/validator/v10/translations/ja/ja.go index 43ec648..26c9367 100644 --- a/go-playground/validator/v10/translations/ja/ja.go +++ b/go-playground/validator/v10/translations/ja/ja.go @@ -8,9 +8,9 @@ import ( "strings" "time" - "github.com/go-playground/locales" - ut "github.com/go-playground/universal-translator" - "github.com/go-playground/validator/v10" + "git.ningdatech.com/ningda/gin_valid/go-playground/locales" + ut "git.ningdatech.com/ningda/gin_valid/go-playground/universal-translator" + "git.ningdatech.com/ningda/gin_valid/go-playground/validator/v10" ) // RegisterDefaultTranslations registers a set of default translations diff --git a/go-playground/validator/v10/translations/ja/ja_test.go b/go-playground/validator/v10/translations/ja/ja_test.go index 435018b..8b97d17 100644 --- a/go-playground/validator/v10/translations/ja/ja_test.go +++ b/go-playground/validator/v10/translations/ja/ja_test.go @@ -4,10 +4,10 @@ import ( "testing" "time" - . "github.com/go-playground/assert/v2" - ja_locale "github.com/go-playground/locales/ja" + . "git.ningdatech.com/ningda/gin_valid/go-playground/assert/v2" + ja_locale "git.ningdatech.com/ningda/gin_valid/go-playground/locales/ja" + "git.ningdatech.com/ningda/gin_valid/go-playground/validator/v10" ut "github.com/go-playground/universal-translator" - "github.com/go-playground/validator/v10" ) func TestTranslations(t *testing.T) { diff --git a/go-playground/validator/v10/translations/nl/nl.go b/go-playground/validator/v10/translations/nl/nl.go index a64815d..8f49a1d 100644 --- a/go-playground/validator/v10/translations/nl/nl.go +++ b/go-playground/validator/v10/translations/nl/nl.go @@ -8,9 +8,9 @@ import ( "strings" "time" - "github.com/go-playground/locales" - ut "github.com/go-playground/universal-translator" - "github.com/go-playground/validator/v10" + "git.ningdatech.com/ningda/gin_valid/go-playground/locales" + ut "git.ningdatech.com/ningda/gin_valid/go-playground/universal-translator" + "git.ningdatech.com/ningda/gin_valid/go-playground/validator/v10" ) // RegisterDefaultTranslations registers a set of default translations diff --git a/go-playground/validator/v10/translations/nl/nl_test.go b/go-playground/validator/v10/translations/nl/nl_test.go index f46974c..2f559b6 100644 --- a/go-playground/validator/v10/translations/nl/nl_test.go +++ b/go-playground/validator/v10/translations/nl/nl_test.go @@ -4,10 +4,10 @@ import ( "testing" "time" - . "github.com/go-playground/assert/v2" - english "github.com/go-playground/locales/en" - ut "github.com/go-playground/universal-translator" - "github.com/go-playground/validator/v10" + . "git.ningdatech.com/ningda/gin_valid/go-playground/assert/v2" + english "git.ningdatech.com/ningda/gin_valid/go-playground/locales/en" + ut "git.ningdatech.com/ningda/gin_valid/go-playground/universal-translator" + "git.ningdatech.com/ningda/gin_valid/go-playground/validator/v10" ) func TestTranslations(t *testing.T) { diff --git a/go-playground/validator/v10/translations/pt/pt.go b/go-playground/validator/v10/translations/pt/pt.go index 9dbaf5f..91399a7 100644 --- a/go-playground/validator/v10/translations/pt/pt.go +++ b/go-playground/validator/v10/translations/pt/pt.go @@ -8,9 +8,9 @@ import ( "strings" "time" - "github.com/go-playground/locales" - ut "github.com/go-playground/universal-translator" - "github.com/go-playground/validator/v10" + "git.ningdatech.com/ningda/gin_valid/go-playground/locales" + ut "git.ningdatech.com/ningda/gin_valid/go-playground/universal-translator" + "git.ningdatech.com/ningda/gin_valid/go-playground/validator/v10" ) // RegisterDefaultTranslations registers a set of default translations diff --git a/go-playground/validator/v10/translations/pt/pt_test.go b/go-playground/validator/v10/translations/pt/pt_test.go index ceec15f..9b180d8 100644 --- a/go-playground/validator/v10/translations/pt/pt_test.go +++ b/go-playground/validator/v10/translations/pt/pt_test.go @@ -4,11 +4,11 @@ import ( "testing" "time" - . "github.com/go-playground/assert/v2" - "github.com/go-playground/locales/pt" - ut "github.com/go-playground/universal-translator" + . "git.ningdatech.com/ningda/gin_valid/go-playground/assert/v2" + "git.ningdatech.com/ningda/gin_valid/go-playground/locales/pt" + ut "git.ningdatech.com/ningda/gin_valid/go-playground/universal-translator" - "github.com/go-playground/validator/v10" + "git.ningdatech.com/ningda/gin_valid/go-playground/validator/v10" ) func TestTranslations(t *testing.T) { diff --git a/go-playground/validator/v10/translations/pt_BR/pt_BR.go b/go-playground/validator/v10/translations/pt_BR/pt_BR.go index df4fc67..7f0e0aa 100644 --- a/go-playground/validator/v10/translations/pt_BR/pt_BR.go +++ b/go-playground/validator/v10/translations/pt_BR/pt_BR.go @@ -8,9 +8,9 @@ import ( "strings" "time" - "github.com/go-playground/locales" - ut "github.com/go-playground/universal-translator" - "github.com/go-playground/validator/v10" + "git.ningdatech.com/ningda/gin_valid/go-playground/locales" + ut "git.ningdatech.com/ningda/gin_valid/go-playground/universal-translator" + "git.ningdatech.com/ningda/gin_valid/go-playground/validator/v10" ) // RegisterDefaultTranslations registers a set of default translations diff --git a/go-playground/validator/v10/translations/pt_BR/pt_BR_test.go b/go-playground/validator/v10/translations/pt_BR/pt_BR_test.go index 6f80ef7..fc7bbd2 100644 --- a/go-playground/validator/v10/translations/pt_BR/pt_BR_test.go +++ b/go-playground/validator/v10/translations/pt_BR/pt_BR_test.go @@ -4,10 +4,10 @@ import ( "testing" "time" - . "github.com/go-playground/assert/v2" - brazilian_portuguese "github.com/go-playground/locales/pt_BR" - ut "github.com/go-playground/universal-translator" - "github.com/go-playground/validator/v10" + . "git.ningdatech.com/ningda/gin_valid/go-playground/assert/v2" + brazilian_portuguese "git.ningdatech.com/ningda/gin_valid/go-playground/locales/pt_BR" + ut "git.ningdatech.com/ningda/gin_valid/go-playground/universal-translator" + "git.ningdatech.com/ningda/gin_valid/go-playground/validator/v10" ) func TestTranslations(t *testing.T) { diff --git a/go-playground/validator/v10/translations/ru/ru.go b/go-playground/validator/v10/translations/ru/ru.go index 6f9d41b..54ea05d 100644 --- a/go-playground/validator/v10/translations/ru/ru.go +++ b/go-playground/validator/v10/translations/ru/ru.go @@ -8,9 +8,9 @@ import ( "strings" "time" - "github.com/go-playground/locales" - ut "github.com/go-playground/universal-translator" - "github.com/go-playground/validator/v10" + "git.ningdatech.com/ningda/gin_valid/go-playground/locales" + ut "git.ningdatech.com/ningda/gin_valid/go-playground/universal-translator" + "git.ningdatech.com/ningda/gin_valid/go-playground/validator/v10" ) // RegisterDefaultTranslations registers a set of default translations diff --git a/go-playground/validator/v10/translations/ru/ru_test.go b/go-playground/validator/v10/translations/ru/ru_test.go index aa5beb7..e222aaf 100644 --- a/go-playground/validator/v10/translations/ru/ru_test.go +++ b/go-playground/validator/v10/translations/ru/ru_test.go @@ -6,10 +6,10 @@ import ( "testing" "time" - . "github.com/go-playground/assert/v2" - russian "github.com/go-playground/locales/en" - ut "github.com/go-playground/universal-translator" - "github.com/go-playground/validator/v10" + . "git.ningdatech.com/ningda/gin_valid/go-playground/assert/v2" + russian "git.ningdatech.com/ningda/gin_valid/go-playground/locales/en" + ut "git.ningdatech.com/ningda/gin_valid/go-playground/universal-translator" + "git.ningdatech.com/ningda/gin_valid/go-playground/validator/v10" ) func TestTranslations(t *testing.T) { diff --git a/go-playground/validator/v10/translations/tr/tr.go b/go-playground/validator/v10/translations/tr/tr.go index 2709e4b..2c3d773 100644 --- a/go-playground/validator/v10/translations/tr/tr.go +++ b/go-playground/validator/v10/translations/tr/tr.go @@ -8,9 +8,9 @@ import ( "strings" "time" - "github.com/go-playground/locales" - ut "github.com/go-playground/universal-translator" - "github.com/go-playground/validator/v10" + "git.ningdatech.com/ningda/gin_valid/go-playground/locales" + ut "git.ningdatech.com/ningda/gin_valid/go-playground/universal-translator" + "git.ningdatech.com/ningda/gin_valid/go-playground/validator/v10" ) // RegisterDefaultTranslations registers a set of default translations diff --git a/go-playground/validator/v10/translations/tr/tr_test.go b/go-playground/validator/v10/translations/tr/tr_test.go index 0b15b49..f524d04 100644 --- a/go-playground/validator/v10/translations/tr/tr_test.go +++ b/go-playground/validator/v10/translations/tr/tr_test.go @@ -4,10 +4,10 @@ import ( "testing" "time" - . "github.com/go-playground/assert/v2" - turkish "github.com/go-playground/locales/tr" - ut "github.com/go-playground/universal-translator" - "github.com/go-playground/validator/v10" + . "git.ningdatech.com/ningda/gin_valid/go-playground/assert/v2" + turkish "git.ningdatech.com/ningda/gin_valid/go-playground/locales/tr" + ut "git.ningdatech.com/ningda/gin_valid/go-playground/universal-translator" + "git.ningdatech.com/ningda/gin_valid/go-playground/validator/v10" ) func TestTranslations(t *testing.T) { diff --git a/go-playground/validator/v10/translations/zh/zh.go b/go-playground/validator/v10/translations/zh/zh.go index 98cf889..a954e8b 100644 --- a/go-playground/validator/v10/translations/zh/zh.go +++ b/go-playground/validator/v10/translations/zh/zh.go @@ -2,15 +2,15 @@ package zh import ( "fmt" + "git.ningdatech.com/ningda/gin_valid/go-playground/validator/v10" "log" "reflect" "strconv" "strings" "time" - "github.com/go-playground/locales" - ut "github.com/go-playground/universal-translator" - "github.com/go-playground/validator/v10" + "git.ningdatech.com/ningda/gin_valid/go-playground/locales" + ut "git.ningdatech.com/ningda/gin_valid/go-playground/universal-translator" ) // RegisterDefaultTranslations registers a set of default translations diff --git a/go-playground/validator/v10/translations/zh/zh_test.go b/go-playground/validator/v10/translations/zh/zh_test.go index d106e0d..ba7cdfe 100644 --- a/go-playground/validator/v10/translations/zh/zh_test.go +++ b/go-playground/validator/v10/translations/zh/zh_test.go @@ -4,10 +4,10 @@ import ( "testing" "time" - . "github.com/go-playground/assert/v2" - zhongwen "github.com/go-playground/locales/zh" - ut "github.com/go-playground/universal-translator" - "github.com/go-playground/validator/v10" + . "git.ningdatech.com/ningda/gin_valid/go-playground/assert/v2" + zhongwen "git.ningdatech.com/ningda/gin_valid/go-playground/locales/zh" + ut "git.ningdatech.com/ningda/gin_valid/go-playground/universal-translator" + "git.ningdatech.com/ningda/gin_valid/go-playground/validator/v10" ) func TestTranslations(t *testing.T) { diff --git a/go-playground/validator/v10/translations/zh_tw/zh_tw.go b/go-playground/validator/v10/translations/zh_tw/zh_tw.go index 391a010..40dd9f5 100644 --- a/go-playground/validator/v10/translations/zh_tw/zh_tw.go +++ b/go-playground/validator/v10/translations/zh_tw/zh_tw.go @@ -8,9 +8,9 @@ import ( "strings" "time" - "github.com/go-playground/locales" - ut "github.com/go-playground/universal-translator" - "github.com/go-playground/validator/v10" + "git.ningdatech.com/ningda/gin_valid/go-playground/locales" + ut "git.ningdatech.com/ningda/gin_valid/go-playground/universal-translator" + "git.ningdatech.com/ningda/gin_valid/go-playground/validator/v10" ) // RegisterDefaultTranslations registers a set of default translations diff --git a/go-playground/validator/v10/translations/zh_tw/zh_tw_test.go b/go-playground/validator/v10/translations/zh_tw/zh_tw_test.go index cf60d1d..301c876 100644 --- a/go-playground/validator/v10/translations/zh_tw/zh_tw_test.go +++ b/go-playground/validator/v10/translations/zh_tw/zh_tw_test.go @@ -4,10 +4,10 @@ import ( "testing" "time" - . "github.com/go-playground/assert/v2" - zhongwen "github.com/go-playground/locales/zh_Hant_TW" - ut "github.com/go-playground/universal-translator" - "github.com/go-playground/validator/v10" + . "git.ningdatech.com/ningda/gin_valid/go-playground/assert/v2" + zhongwen "git.ningdatech.com/ningda/gin_valid/go-playground/locales/zh_Hant_TW" + ut "git.ningdatech.com/ningda/gin_valid/go-playground/universal-translator" + "git.ningdatech.com/ningda/gin_valid/go-playground/validator/v10" ) func TestTranslations(t *testing.T) { diff --git a/go-playground/validator/v10/validator_test.go b/go-playground/validator/v10/validator_test.go index 6c9fb1e..b18b9e5 100644 --- a/go-playground/validator/v10/validator_test.go +++ b/go-playground/validator/v10/validator_test.go @@ -14,11 +14,11 @@ import ( "testing" "time" - . "github.com/go-playground/assert/v2" - "github.com/go-playground/locales/en" - "github.com/go-playground/locales/fr" - "github.com/go-playground/locales/nl" - ut "github.com/go-playground/universal-translator" + . "git.ningdatech.com/ningda/gin_valid/go-playground/assert/v2" + "git.ningdatech.com/ningda/gin_valid/go-playground/locales/en" + "git.ningdatech.com/ningda/gin_valid/go-playground/locales/fr" + "git.ningdatech.com/ningda/gin_valid/go-playground/locales/nl" + ut "git.ningdatech.com/ningda/gin_valid/go-playground/universal-translator" ) // NOTES: diff --git a/go.mod b/go.mod index ac584b6..d415236 100644 --- a/go.mod +++ b/go.mod @@ -3,9 +3,14 @@ module git.ningdatech.com/ningda/gin_valid go 1.13 require ( + github.com/gin-gonic/gin v1.6.3 // indirect + github.com/go-playground/universal-translator v0.17.0 + github.com/go-playground/validator/v10 v10.4.1 // indirect github.com/golang/protobuf v1.4.3 github.com/json-iterator/go v1.1.10 // indirect + github.com/leodido/go-urn v1.2.0 github.com/ugorji/go v1.2.0 // indirect github.com/ugorji/go/codec v1.2.0 + golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9 gopkg.in/yaml.v2 v2.4.0 )