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 /lib/memfs | |
| parent | 993f841133049ab0ce52e6e1f864d8cc534aefec (diff) | |
| download | pakakeh.go-52374454e83d5eec0ce2d0b1bd21392724c52289.tar.xz | |
all: reformat all files with goimports
Diffstat (limited to 'lib/memfs')
| -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 |
4 files changed, 7 insertions, 7 deletions
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}}", |
