Skip to content

Commit 546490a

Browse files
committed
Temporary update module path
1 parent a396999 commit 546490a

File tree

9 files changed

+16
-16
lines changed

9 files changed

+16
-16
lines changed

‎goi18n/extract_command.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ func (ec *extractCommand) execute() error {
116116
if err != nil {
117117
return err
118118
}
119-
return os.WriteFile(path, content, 0666)
119+
return os.WriteFile(path, content, 0o666)
120120
}
121121

122122
type duplicateMessageIDErr struct {

‎goi18n/extract_command_test.go‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ func TestExtract(t *testing.T) {
3838
fileName: "file.go",
3939
file: `package main
4040
41-
import "github.com/nicksnyder/go-i18n/v2/i18n"
41+
import "github.com/gohugoio/go-i18n/v2/i18n"
4242
4343
var m1 = &i18n.Message{
4444
ID: "m",
@@ -57,7 +57,7 @@ func TestExtract(t *testing.T) {
5757
fileName: "file.go",
5858
file: `package main
5959
60-
import "github.com/nicksnyder/go-i18n/v2/i18n"
60+
import "github.com/gohugoio/go-i18n/v2/i18n"
6161
6262
var m1 = &i18n.Message{
6363
ID: "m",
@@ -271,7 +271,7 @@ zero = "Zero translation"
271271
fileName: "file.go",
272272
file: `package main
273273
274-
import "github.com/nicksnyder/go-i18n/v2/i18n"
274+
import "github.com/gohugoio/go-i18n/v2/i18n"
275275
276276
type ConstType string
277277
@@ -295,7 +295,7 @@ zero = "Zero translation"
295295
defer mustRemoveAll(t, outdir)
296296

297297
inpath := filepath.Join(indir, test.fileName)
298-
if err := os.WriteFile(inpath, []byte(test.file), 0666); err != nil {
298+
if err := os.WriteFile(inpath, []byte(test.file), 0o666); err != nil {
299299
t.Fatal(err)
300300
}
301301

‎goi18n/main.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Command goi18n manages message files used by the i18n package.
22
//
3-
// go get -u github.com/nicksnyder/go-i18n/v2/goi18n
3+
// go get -u github.com/gohugoio/go-i18n/v2/goi18n
44
// goi18n -help
55
//
66
// Use `goi18n extract` to create a message file that contains the messages defined in your Go source files.

‎goi18n/merge_command.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ func (mc *mergeCommand) execute() error {
9393
return err
9494
}
9595
for path, content := range ops.writeFiles {
96-
if err := os.WriteFile(path, content, 0666); err != nil {
96+
if err := os.WriteFile(path, content, 0o666); err != nil {
9797
return err
9898
}
9999
}

‎i18n/localizer.go‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ import (
44
"fmt"
55
texttemplate "text/template"
66

7-
"github.com/nicksnyder/go-i18n/v2/i18n/template"
8-
"github.com/nicksnyder/go-i18n/v2/internal/plural"
7+
"github.com/gohugoio/go-i18n/v2/i18n/template"
8+
"github.com/gohugoio/go-i18n/v2/internal/plural"
99
"golang.org/x/text/language"
1010
)
1111

‎i18n/localizer_test.go‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ import (
77
"testing"
88
gotmpl "text/template"
99

10-
"github.com/nicksnyder/go-i18n/v2/i18n/template"
11-
"github.com/nicksnyder/go-i18n/v2/internal/plural"
10+
"github.com/gohugoio/go-i18n/v2/i18n/template"
11+
"github.com/gohugoio/go-i18n/v2/internal/plural"
1212
"golang.org/x/text/language"
1313
)
1414

‎i18n/message_template.go‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ import (
44
"fmt"
55
texttemplate "text/template"
66

7-
"github.com/nicksnyder/go-i18n/v2/i18n/template"
8-
"github.com/nicksnyder/go-i18n/v2/internal"
9-
"github.com/nicksnyder/go-i18n/v2/internal/plural"
7+
"github.com/gohugoio/go-i18n/v2/i18n/template"
8+
"github.com/gohugoio/go-i18n/v2/internal"
9+
"github.com/gohugoio/go-i18n/v2/internal/plural"
1010
)
1111

1212
// MessageTemplate is an executable template for a message.

‎internal/template.go‎

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

6-
"github.com/nicksnyder/go-i18n/v2/i18n/template"
6+
"github.com/gohugoio/go-i18n/v2/i18n/template"
77
)
88

99
// Template stores the template for a string and a cached version of the parsed template if they are cacheable.

‎internal/template_test.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import (
55
"testing"
66
texttemplate "text/template"
77

8-
"github.com/nicksnyder/go-i18n/v2/i18n/template"
8+
"github.com/gohugoio/go-i18n/v2/i18n/template"
99
)
1010

1111
func TestExecute(t *testing.T) {

0 commit comments

Comments
 (0)