From 20528540b1ad777c9c1ed2fd8e39e1c2de0c3516 Mon Sep 17 00:00:00 2001 From: chey Date: Wed, 17 May 2023 15:55:40 -0400 Subject: [PATCH] Update doc.go --- doc.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc.go b/doc.go index aabb9d44..91031d6d 100644 --- a/doc.go +++ b/doc.go @@ -6,7 +6,7 @@ inside of Go `html/template` and `text/template` files. To add these functions, use the `template.Funcs()` method: - t := templates.New("foo").Funcs(sprig.FuncMap()) + t := template.New("foo").Funcs(sprig.FuncMap()) Note that you should add the function map before you parse any template files.