diff options
| author | Dave Henderson <dhenderson@gmail.com> | 2024-01-25 20:11:31 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-01-25 20:11:31 -0500 |
| commit | ebb97fb7367fb983cffc1935a8fb57e4b80f5249 (patch) | |
| tree | 43ef6cd01f629f60f59efe1e5b003f7c8e3a1257 /internal/funcs/funcs.go | |
| parent | f1d9158ea99abbe556251c1ff2fe970f3b460ee9 (diff) | |
Move funcs package to internal (#1977)
Signed-off-by: Dave Henderson <dhenderson@gmail.com>
Diffstat (limited to 'internal/funcs/funcs.go')
| -rw-r--r-- | internal/funcs/funcs.go | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/internal/funcs/funcs.go b/internal/funcs/funcs.go new file mode 100644 index 00000000..f5549e61 --- /dev/null +++ b/internal/funcs/funcs.go @@ -0,0 +1,15 @@ +package funcs + +import ( + "context" + "fmt" + + "github.com/hairyhenderson/gomplate/v4/internal/config" +) + +func checkExperimental(ctx context.Context) error { + if !config.ExperimentalEnabled(ctx) { + return fmt.Errorf("experimental function, but experimental mode not enabled") + } + return nil +} |
