diff options
author | Bjørn Erik Pedersen <[email protected]> | 2022-03-17 22:03:27 +0100 |
---|---|---|
committer | Bjørn Erik Pedersen <[email protected]> | 2022-03-17 22:03:27 +0100 |
commit | b80853de90b10171155b8f3fde47d64ec7bfa0dd (patch) | |
tree | 435d3dbf7a495a0c6ce64c9769e037179aa0d27b /deps | |
parent | 423594e03a906ef4150f433666ff588b022c3c92 (diff) | |
download | hugo-b80853de90b10171155b8f3fde47d64ec7bfa0dd.tar.gz hugo-b80853de90b10171155b8f3fde47d64ec7bfa0dd.zip |
all: gofmt -w -r 'interface{} -> any' .
Updates #9687
Diffstat (limited to 'deps')
-rw-r--r-- | deps/deps.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/deps/deps.go b/deps/deps.go index 191193b9b..a9e78860d 100644 --- a/deps/deps.go +++ b/deps/deps.go @@ -68,7 +68,7 @@ type Deps struct { FileCaches filecache.Caches // The translation func to use - Translate func(translationID string, templateData interface{}) string `json:"-"` + Translate func(translationID string, templateData any) string `json:"-"` // The language in use. TODO(bep) consolidate with site Language *langs.Language @@ -83,7 +83,7 @@ type Deps struct { WithTemplate func(templ tpl.TemplateManager) error `json:"-"` // Used in tests - OverloadedTemplateFuncs map[string]interface{} + OverloadedTemplateFuncs map[string]any translationProvider ResourceProvider @@ -392,7 +392,7 @@ type DepsCfg struct { TemplateProvider ResourceProvider WithTemplate func(templ tpl.TemplateManager) error // Used in tests - OverloadedTemplateFuncs map[string]interface{} + OverloadedTemplateFuncs map[string]any // i18n handling. TranslationProvider ResourceProvider |