Skip to content

Commit

Permalink
Merge pull request #256 from jawher/fix-goimports-diff
Browse files Browse the repository at this point in the history
Fix universal translator imports so that goimports doesn't get remove them
  • Loading branch information
deankarn authored Sep 22, 2016
2 parents 23e84d2 + 73e8e76 commit 335c8e2
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion errors.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"reflect"
"strings"

"github.com/go-playground/universal-translator"
ut "github.com/go-playground/universal-translator"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion examples/translations/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"fmt"

"github.com/go-playground/locales/en"
"github.com/go-playground/universal-translator"
ut "github.com/go-playground/universal-translator"
"gopkg.in/go-playground/validator.v9"
en_translations "gopkg.in/go-playground/validator.v9/translations/en"
)
Expand Down
2 changes: 1 addition & 1 deletion translations.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package validator

import "github.com/go-playground/universal-translator"
import ut "github.com/go-playground/universal-translator"

// TranslationFunc is the function type used to register or override
// custom translations
Expand Down
2 changes: 1 addition & 1 deletion translations/en/en.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"time"

"github.com/go-playground/locales"
"github.com/go-playground/universal-translator"
ut "github.com/go-playground/universal-translator"
"gopkg.in/go-playground/validator.v9"
)

Expand Down
2 changes: 1 addition & 1 deletion translations/en/en_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"time"

english "github.com/go-playground/locales/en"
"github.com/go-playground/universal-translator"
ut "github.com/go-playground/universal-translator"
. "gopkg.in/go-playground/assert.v1"
"gopkg.in/go-playground/validator.v9"
)
Expand Down
2 changes: 1 addition & 1 deletion validator_instance.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"sync"
"time"

"github.com/go-playground/universal-translator"
ut "github.com/go-playground/universal-translator"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion validator_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import (
"github.com/go-playground/locales/en"
"github.com/go-playground/locales/fr"
"github.com/go-playground/locales/nl"
"github.com/go-playground/universal-translator"
ut "github.com/go-playground/universal-translator"
)

// NOTES:
Expand Down

0 comments on commit 335c8e2

Please sign in to comment.