summaryrefslogtreecommitdiff
path: root/gomplate.go
diff options
context:
space:
mode:
authorDave Henderson <dhenderson@gmail.com>2024-05-29 20:48:48 -0400
committerGitHub <noreply@github.com>2024-05-30 00:48:48 +0000
commitc32d48563d10f0f0d0247f3dad84b9e9ab3284bd (patch)
treef8ff1560d6b383bbf25f96bd6138bd172ff45173 /gomplate.go
parent95a06b9fc94c44af51588379c4e443e986b7e4d5 (diff)
chore: add files missed from PR 2083 (#2084)
Signed-off-by: Dave Henderson <dhenderson@gmail.com>
Diffstat (limited to 'gomplate.go')
-rw-r--r--gomplate.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/gomplate.go b/gomplate.go
index 1e27f253..61bda1fb 100644
--- a/gomplate.go
+++ b/gomplate.go
@@ -49,7 +49,7 @@ func Run(ctx context.Context, cfg *config.Config) error {
opts := optionsFromConfig(cfg)
opts.Funcs = funcMap
- tr := NewRenderer(opts)
+ tr := newRenderer(opts)
start := time.Now()
@@ -70,7 +70,7 @@ func Run(ctx context.Context, cfg *config.Config) error {
return nil
}
-func chooseNamer(cfg *config.Config, tr *Renderer) func(context.Context, string) (string, error) {
+func chooseNamer(cfg *config.Config, tr *renderer) func(context.Context, string) (string, error) {
if cfg.OutputMap == "" {
return simpleNamer(cfg.OutputDir)
}
@@ -84,7 +84,7 @@ func simpleNamer(outDir string) func(ctx context.Context, inPath string) (string
}
}
-func mappingNamer(outMap string, tr *Renderer) func(context.Context, string) (string, error) {
+func mappingNamer(outMap string, tr *renderer) func(context.Context, string) (string, error) {
return func(ctx context.Context, inPath string) (string, error) {
tcontext, err := createTmplContext(ctx, tr.tctxAliases, tr.sr)
if err != nil {