diff options
| author | Shulhan <ms@kilabit.info> | 2024-03-06 04:35:08 +0700 |
|---|---|---|
| committer | Shulhan <ms@kilabit.info> | 2024-03-09 01:10:24 +0700 |
| commit | 52374454e83d5eec0ce2d0b1bd21392724c52289 (patch) | |
| tree | 2af189d4bc694c59b21d0efe7b19a154f7ff0ea3 | |
| parent | 993f841133049ab0ce52e6e1f864d8cc534aefec (diff) | |
| download | pakakeh.go-52374454e83d5eec0ce2d0b1bd21392724c52289.tar.xz | |
all: reformat all files with goimports
| -rw-r--r-- | cmd/epoch/main.go | 4 | ||||
| -rw-r--r-- | cmd/gofmtcomment/main.go | 4 | ||||
| -rw-r--r-- | cmd/ini/main.go | 4 | ||||
| -rw-r--r-- | cmd/xtrk/main.go | 4 | ||||
| -rw-r--r-- | lib/hunspell/tests/morphology_test.go | 2 | ||||
| -rw-r--r-- | lib/memfs/internal/test/embed/embed_test.go | 4 | ||||
| -rw-r--r-- | lib/memfs/internal/test/embed_disable_modtime/embed_test.go | 4 | ||||
| -rw-r--r-- | lib/memfs/memfs.go | 2 | ||||
| -rw-r--r-- | lib/memfs/template.go | 4 |
9 files changed, 16 insertions, 16 deletions
diff --git a/cmd/epoch/main.go b/cmd/epoch/main.go index 4161ac24..04198908 100644 --- a/cmd/epoch/main.go +++ b/cmd/epoch/main.go @@ -15,7 +15,7 @@ import ( "strings" "time" - "git.sr.ht/~shulhan/pakakeh.go" + pakakeh "git.sr.ht/~shulhan/pakakeh.go" ) const usage = `= epoch @@ -176,7 +176,7 @@ func main() { return case cmdVersion: - fmt.Println("epoch v" + share.Version) + fmt.Println(`epoch v` + pakakeh.Version) return default: diff --git a/cmd/gofmtcomment/main.go b/cmd/gofmtcomment/main.go index c59c289d..7f914ffc 100644 --- a/cmd/gofmtcomment/main.go +++ b/cmd/gofmtcomment/main.go @@ -13,7 +13,7 @@ import ( "regexp" "strings" - "git.sr.ht/~shulhan/pakakeh.go" + pakakeh "git.sr.ht/~shulhan/pakakeh.go" ) const ( @@ -68,7 +68,7 @@ func main() { return } if cmd == cmdVersion { - fmt.Println("gofmtcomment v" + share.Version) + fmt.Println(`gofmtcomment v` + pakakeh.Version) return } diff --git a/cmd/ini/main.go b/cmd/ini/main.go index fb6b30fc..dff05c35 100644 --- a/cmd/ini/main.go +++ b/cmd/ini/main.go @@ -16,7 +16,7 @@ import ( "os" "strings" - "git.sr.ht/~shulhan/pakakeh.go" + pakakeh "git.sr.ht/~shulhan/pakakeh.go" "git.sr.ht/~shulhan/pakakeh.go/lib/ini" ) @@ -116,7 +116,7 @@ func main() { doSet(args[1:]) case cmdVersion: - fmt.Println("ini v" + share.Version) + fmt.Println(`ini v` + pakakeh.Version) default: log.Println("ini: unknown command:", cmd) diff --git a/cmd/xtrk/main.go b/cmd/xtrk/main.go index c45b0d5f..994ba4ca 100644 --- a/cmd/xtrk/main.go +++ b/cmd/xtrk/main.go @@ -14,7 +14,7 @@ import ( "os" "strings" - "git.sr.ht/~shulhan/pakakeh.go" + pakakeh "git.sr.ht/~shulhan/pakakeh.go" libos "git.sr.ht/~shulhan/pakakeh.go/lib/os" ) @@ -49,7 +49,7 @@ func main() { return } if cmd == cmdVersion { - fmt.Println("xtrk v" + share.Version) + fmt.Println(`xtrk v` + pakakeh.Version) return } diff --git a/lib/hunspell/tests/morphology_test.go b/lib/hunspell/tests/morphology_test.go index 921fcced..f237b9be 100644 --- a/lib/hunspell/tests/morphology_test.go +++ b/lib/hunspell/tests/morphology_test.go @@ -64,7 +64,7 @@ func TestMorphology_parseStem(t *testing.T) { exp: "x", }, { line: " stem(x) = x ", - exp: "x", + exp: "x", }} got := morphology{ diff --git a/lib/memfs/internal/test/embed/embed_test.go b/lib/memfs/internal/test/embed/embed_test.go index 1a3e155a..0428f11a 100644 --- a/lib/memfs/internal/test/embed/embed_test.go +++ b/lib/memfs/internal/test/embed/embed_test.go @@ -320,14 +320,14 @@ func init() { Opts: &memfs.Options{ Root: "testdata", MaxFileSize: 5242880, - Includes: []string{ + Includes: []string{ }, Excludes: []string{ `^\..*`, `.*/node_save$`, }, Embed: memfs.EmbedOptions{ - CommentHeader: `// SPDX-FileCopyrightText: 2022 Shulhan <ms@kilabit.info> + CommentHeader: `// SPDX-FileCopyrightText: 2022 Shulhan <ms@kilabit.info> // SPDX-License-Identifier: AGPL-3.0-or-later `, PackageName: "embed", diff --git a/lib/memfs/internal/test/embed_disable_modtime/embed_test.go b/lib/memfs/internal/test/embed_disable_modtime/embed_test.go index 3b1e13a6..a691eebc 100644 --- a/lib/memfs/internal/test/embed_disable_modtime/embed_test.go +++ b/lib/memfs/internal/test/embed_disable_modtime/embed_test.go @@ -299,14 +299,14 @@ func init() { Opts: &memfs.Options{ Root: "testdata", MaxFileSize: 5242880, - Includes: []string{ + Includes: []string{ }, Excludes: []string{ `^\..*`, `.*/node_save$`, }, Embed: memfs.EmbedOptions{ - CommentHeader: ``, + CommentHeader: ``, PackageName: "embed", VarName: "memFS", GoFileName: "./internal/test/embed_disable_modtime/embed_test.go", diff --git a/lib/memfs/memfs.go b/lib/memfs/memfs.go index b226f268..a6daf8da 100644 --- a/lib/memfs/memfs.go +++ b/lib/memfs/memfs.go @@ -19,8 +19,8 @@ import ( "time" libbytes "git.sr.ht/~shulhan/pakakeh.go/lib/bytes" - libints "git.sr.ht/~shulhan/pakakeh.go/lib/ints" libhtml "git.sr.ht/~shulhan/pakakeh.go/lib/html" + libints "git.sr.ht/~shulhan/pakakeh.go/lib/ints" libstrings "git.sr.ht/~shulhan/pakakeh.go/lib/strings" ) diff --git a/lib/memfs/template.go b/lib/memfs/template.go index b5ff09b5..5f21bf02 100644 --- a/lib/memfs/template.go +++ b/lib/memfs/template.go @@ -91,7 +91,7 @@ func init() { Opts: &memfs.Options{ Root: "{{.Opts.Root}}", MaxFileSize: {{.Opts.MaxFileSize}}, - Includes: []string{ + Includes: []string{ {{- range $v := .Opts.Includes}} ` + "`{{$v}}`" + `, {{- end}} @@ -102,7 +102,7 @@ func init() { {{- end}} }, Embed: memfs.EmbedOptions{ - CommentHeader: ` + "`" + `{{.Opts.Embed.CommentHeader}}` + "`" + `, + CommentHeader: ` + "`" + `{{.Opts.Embed.CommentHeader}}` + "`" + `, PackageName: "{{.Opts.Embed.PackageName}}", VarName: "{{.Opts.Embed.VarName}}", GoFileName: "{{.Opts.Embed.GoFileName}}", |
