From 47b74a5505d4c9979d24a8bcffde711a60c5f23a Mon Sep 17 00:00:00 2001 From: Dave Henderson Date: Sun, 9 Jun 2024 19:25:17 -0400 Subject: chore(api)!: Overhauling config and rendering types (#2094) Signed-off-by: Dave Henderson --- plugins.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'plugins.go') diff --git a/plugins.go b/plugins.go index 7509b97c..fd2882ab 100644 --- a/plugins.go +++ b/plugins.go @@ -14,14 +14,13 @@ import ( "time" "github.com/hairyhenderson/gomplate/v4/conv" - "github.com/hairyhenderson/gomplate/v4/internal/config" ) // bindPlugins creates custom plugin functions for each plugin specified by // the config, and adds them to the given funcMap. Uses the configuration's // PluginTimeout as the default plugin Timeout. Errors if a function name is // duplicated. -func bindPlugins(ctx context.Context, cfg *config.Config, funcMap template.FuncMap) error { +func bindPlugins(ctx context.Context, cfg *Config, funcMap template.FuncMap) error { for k, v := range cfg.Plugins { if _, ok := funcMap[k]; ok { return fmt.Errorf("function %q is already bound, and can not be overridden", k) -- cgit v1.2.3