summaryrefslogtreecommitdiff
path: root/gomplate_test.go
diff options
context:
space:
mode:
authorDave Henderson <dhenderson@gmail.com>2025-03-09 20:14:46 -0400
committerGitHub <noreply@github.com>2025-03-10 00:14:46 +0000
commitbfa6b9dcef7592e6dd8225aaa0d0ab5aef5b3f84 (patch)
tree7e844defee92dc3af320df20baa6f9b421d4a4c9 /gomplate_test.go
parent7942441e61471f578a57910b3aa93636f5a0310d (diff)
chore(refactoring): Refactor/modernizations (#2345)
chore(refactoring): Refactor with modernization refactorings * range over int * replace interface{} with any * replace common map operations with maps.Copy/maps.Clone * simplifying loops with slices.Contains/ContainsFunc * modernize benchmarks with b.Loop * modernize tests with t.Context * use fmt.Appendf * range over strings.SplitSeq * use new stdlib crypto/pbkdf2 package --------- Signed-off-by: Dave Henderson <dhenderson@gmail.com>
Diffstat (limited to 'gomplate_test.go')
-rw-r--r--gomplate_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/gomplate_test.go b/gomplate_test.go
index 5b480dc9..8a4b05d9 100644
--- a/gomplate_test.go
+++ b/gomplate_test.go
@@ -171,7 +171,7 @@ func TestMappingNamer(t *testing.T) {
reg := datafs.NewRegistry()
tr := &renderer{
sr: datafs.NewSourceReader(reg),
- funcs: map[string]interface{}{
+ funcs: map[string]any{
"foo": func() string { return "foo" },
},
}