aboutsummaryrefslogtreecommitdiffhomepage
path: root/hugolib/filesystems
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <[email protected]>2022-03-17 22:03:27 +0100
committerBjørn Erik Pedersen <[email protected]>2022-03-17 22:03:27 +0100
commitb80853de90b10171155b8f3fde47d64ec7bfa0dd (patch)
tree435d3dbf7a495a0c6ce64c9769e037179aa0d27b /hugolib/filesystems
parent423594e03a906ef4150f433666ff588b022c3c92 (diff)
downloadhugo-b80853de90b10171155b8f3fde47d64ec7bfa0dd.tar.gz
hugo-b80853de90b10171155b8f3fde47d64ec7bfa0dd.zip
all: gofmt -w -r 'interface{} -> any' .
Updates #9687
Diffstat (limited to 'hugolib/filesystems')
-rw-r--r--hugolib/filesystems/basefs_test.go16
1 files changed, 8 insertions, 8 deletions
diff --git a/hugolib/filesystems/basefs_test.go b/hugolib/filesystems/basefs_test.go
index 7fbb53954..32d1eef71 100644
--- a/hugolib/filesystems/basefs_test.go
+++ b/hugolib/filesystems/basefs_test.go
@@ -314,12 +314,12 @@ func TestStaticFsMultiHost(t *testing.T) {
v.Set("theme", "t1")
v.Set("defaultContentLanguage", "en")
- langConfig := map[string]interface{}{
- "no": map[string]interface{}{
+ langConfig := map[string]any{
+ "no": map[string]any{
"staticDir": "static_no",
"baseURL": "https://example.org/no/",
},
- "en": map[string]interface{}{
+ "en": map[string]any{
"baseURL": "https://example.org/en/",
},
}
@@ -362,17 +362,17 @@ func TestMakePathRelative(t *testing.T) {
c.Assert(fs.Source.MkdirAll(filepath.Join(workDir, "static", "d2"), 0777), qt.IsNil)
c.Assert(fs.Source.MkdirAll(filepath.Join(workDir, "dust", "d2"), 0777), qt.IsNil)
- moduleCfg := map[string]interface{}{
- "mounts": []interface{}{
- map[string]interface{}{
+ moduleCfg := map[string]any{
+ "mounts": []any{
+ map[string]any{
"source": "dist",
"target": "static/mydist",
},
- map[string]interface{}{
+ map[string]any{
"source": "dust",
"target": "static/foo/bar",
},
- map[string]interface{}{
+ map[string]any{
"source": "static",
"target": "static",
},