summaryrefslogtreecommitdiffstats
path: root/hugolib/pagebundler_test.go
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2022-03-17 22:03:27 +0100
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2022-03-17 22:03:27 +0100
commitb80853de90b10171155b8f3fde47d64ec7bfa0dd (patch)
tree435d3dbf7a495a0c6ce64c9769e037179aa0d27b /hugolib/pagebundler_test.go
parent423594e03a906ef4150f433666ff588b022c3c92 (diff)
all: gofmt -w -r 'interface{} -> any' .
Updates #9687
Diffstat (limited to 'hugolib/pagebundler_test.go')
-rw-r--r--hugolib/pagebundler_test.go16
1 files changed, 8 insertions, 8 deletions
diff --git a/hugolib/pagebundler_test.go b/hugolib/pagebundler_test.go
index 238c725bd..d7a83d79d 100644
--- a/hugolib/pagebundler_test.go
+++ b/hugolib/pagebundler_test.go
@@ -73,8 +73,8 @@ func TestPageBundlerSiteRegular(t *testing.T) {
"/": ":filename/",
})
- cfg.Set("outputFormats", map[string]interface{}{
- "CUSTOMO": map[string]interface{}{
+ cfg.Set("outputFormats", map[string]any{
+ "CUSTOMO": map[string]any{
"mediaType": "text/html",
"baseName": "cindex",
"path": "cpath",
@@ -82,7 +82,7 @@ func TestPageBundlerSiteRegular(t *testing.T) {
},
})
- cfg.Set("outputs", map[string]interface{}{
+ cfg.Set("outputs", map[string]any{
"home": []string{"HTML", "CUSTOMO"},
"page": []string{"HTML", "CUSTOMO"},
"section": []string{"HTML", "CUSTOMO"},
@@ -705,8 +705,8 @@ func newTestBundleSources(t testing.TB) (*hugofs.Fs, config.Provider) {
cfg.Set("workingDir", workDir)
cfg.Set("contentDir", "base")
cfg.Set("baseURL", "https://example.com")
- cfg.Set("mediaTypes", map[string]interface{}{
- "bepsays/bep": map[string]interface{}{
+ cfg.Set("mediaTypes", map[string]any{
+ "bepsays/bep": map[string]any{
"suffixes": []string{"bep"},
},
})
@@ -873,12 +873,12 @@ func newTestBundleSourcesMultilingual(t *testing.T) (*hugofs.Fs, config.Provider
cfg.Set("baseURL", "https://example.com")
cfg.Set("defaultContentLanguage", "en")
- langConfig := map[string]interface{}{
- "en": map[string]interface{}{
+ langConfig := map[string]any{
+ "en": map[string]any{
"weight": 1,
"languageName": "English",
},
- "nn": map[string]interface{}{
+ "nn": map[string]any{
"weight": 2,
"languageName": "Nynorsk",
},