From 20357ae332952363c78f36d206f04859009ac84d Mon Sep 17 00:00:00 2001 From: Anderson Guilherme Porto Date: Thu, 29 Nov 2018 11:24:20 -0200 Subject: [PATCH] fix import avoid wrong type when apply custom translates. --- translations/pt_BR/pt_BR.go | 2 +- translations/pt_BR/pt_BR_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/translations/pt_BR/pt_BR.go b/translations/pt_BR/pt_BR.go index dcb223d..c6d73b3 100644 --- a/translations/pt_BR/pt_BR.go +++ b/translations/pt_BR/pt_BR.go @@ -10,7 +10,7 @@ import ( "github.com/go-playground/locales" ut "github.com/go-playground/universal-translator" - "github.com/go-playground/validator" + "gopkg.in/go-playground/validator.v9" ) // RegisterDefaultTranslations registers a set of default translations diff --git a/translations/pt_BR/pt_BR_test.go b/translations/pt_BR/pt_BR_test.go index 8d64724..8f7e710 100644 --- a/translations/pt_BR/pt_BR_test.go +++ b/translations/pt_BR/pt_BR_test.go @@ -6,7 +6,7 @@ import ( brazilian_portuguese "github.com/go-playground/locales/pt_BR" ut "github.com/go-playground/universal-translator" - "github.com/go-playground/validator" + "gopkg.in/go-playground/validator.v9" . "gopkg.in/go-playground/assert.v1" )