summaryrefslogtreecommitdiffstats
path: root/tpl/path/init.go
diff options
context:
space:
mode:
Diffstat (limited to 'tpl/path/init.go')
-rw-r--r--tpl/path/init.go10
1 files changed, 5 insertions, 5 deletions
diff --git a/tpl/path/init.go b/tpl/path/init.go
index c67d94866..0d81f6181 100644
--- a/tpl/path/init.go
+++ b/tpl/path/init.go
@@ -46,11 +46,11 @@ func init() {
ns.AddMethodMapping(ctx.Join,
nil,
[][2]string{
- {fmt.Sprintf(`{{ slice %q "filename.txt" | path.Join }}`, testDir), `my/path/filename.txt`},
- {`{{ path.Join "my" "path" "filename.txt" }}`, `my/path/filename.txt`},
- {fmt.Sprintf(`{{ %q | path.Ext }}`, testFile), `.txt`},
- {fmt.Sprintf(`{{ %q | path.Base }}`, testFile), `filename.txt`},
- {fmt.Sprintf(`{{ %q | path.Dir }}`, testFile), `my/path`},
+ {fmt.Sprintf(`{{ slice %q "filename.txt" | path.Join }}`, testDir), `my/path/filename.txt`},
+ {`{{ path.Join "my" "path" "filename.txt" }}`, `my/path/filename.txt`},
+ {fmt.Sprintf(`{{ %q | path.Ext }}`, testFile), `.txt`},
+ {fmt.Sprintf(`{{ %q | path.Base }}`, testFile), `filename.txt`},
+ {fmt.Sprintf(`{{ %q | path.Dir }}`, testFile), `my/path`},
},
)