Skip to content

Commit 335c8e2

Browse files
author
Dean Karn
authored
Merge pull request #256 from jawher/fix-goimports-diff
Fix universal translator imports so that goimports doesn't get remove them
2 parents 23e84d2 + 73e8e76 commit 335c8e2

File tree

7 files changed

+7
-7
lines changed

7 files changed

+7
-7
lines changed

errors.go

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

9-
"github.com/go-playground/universal-translator"
9+
ut "github.com/go-playground/universal-translator"
1010
)
1111

1212
const (

examples/translations/main.go

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

66
"github.com/go-playground/locales/en"
7-
"github.com/go-playground/universal-translator"
7+
ut "github.com/go-playground/universal-translator"
88
"gopkg.in/go-playground/validator.v9"
99
en_translations "gopkg.in/go-playground/validator.v9/translations/en"
1010
)

translations.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
package validator
22

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

55
// TranslationFunc is the function type used to register or override
66
// custom translations

translations/en/en.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import (
99
"time"
1010

1111
"github.com/go-playground/locales"
12-
"github.com/go-playground/universal-translator"
12+
ut "github.com/go-playground/universal-translator"
1313
"gopkg.in/go-playground/validator.v9"
1414
)
1515

translations/en/en_test.go

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

77
english "github.com/go-playground/locales/en"
8-
"github.com/go-playground/universal-translator"
8+
ut "github.com/go-playground/universal-translator"
99
. "gopkg.in/go-playground/assert.v1"
1010
"gopkg.in/go-playground/validator.v9"
1111
)

validator_instance.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88
"sync"
99
"time"
1010

11-
"github.com/go-playground/universal-translator"
11+
ut "github.com/go-playground/universal-translator"
1212
)
1313

1414
const (

validator_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import (
1515
"github.com/go-playground/locales/en"
1616
"github.com/go-playground/locales/fr"
1717
"github.com/go-playground/locales/nl"
18-
"github.com/go-playground/universal-translator"
18+
ut "github.com/go-playground/universal-translator"
1919
)
2020

2121
// NOTES:

0 commit comments

Comments
 (0)