summaryrefslogtreecommitdiff
path: root/plugins.go
diff options
context:
space:
mode:
authorDave Henderson <dhenderson@gmail.com>2024-06-09 19:25:17 -0400
committerGitHub <noreply@github.com>2024-06-09 19:25:17 -0400
commit47b74a5505d4c9979d24a8bcffde711a60c5f23a (patch)
tree479b4331848c549d69d0e2ba1f228dddb2069402 /plugins.go
parentdc41e375484759c09e0480b10a30f6f80318bb56 (diff)
chore(api)!: Overhauling config and rendering types (#2094)
Signed-off-by: Dave Henderson <dhenderson@gmail.com>
Diffstat (limited to 'plugins.go')
-rw-r--r--plugins.go3
1 files changed, 1 insertions, 2 deletions
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)