diff options
author | Thomas Voss <mail@thomasvoss.com> | 2024-11-25 22:54:51 +0100 |
---|---|---|
committer | Thomas Voss <mail@thomasvoss.com> | 2024-11-25 22:54:51 +0100 |
commit | 46f089fcfc7b2f9b5d7c1000a074de54be37c1f2 (patch) | |
tree | 7ce51bcdf4746837ead667760041391bd31c5bb3 /src | |
parent | 370a21fb929a24535f29415903389935e4eccbee (diff) |
Use TrimSuffix() instead of CutSuffix()
Diffstat (limited to 'src')
-rw-r--r-- | src/templates.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/templates.go b/src/templates.go index 5a4d7c5..258a133 100644 --- a/src/templates.go +++ b/src/templates.go @@ -41,7 +41,7 @@ func init() { templates = make(map[string]*template.Template, len(ents)) for _, e := range ents { path := "/" - name, _ := strings.CutSuffix(e.Name(), ".html.tmpl") + name := strings.TrimSuffix(e.Name(), ".html.tmpl") switch { case name[0] == '-': continue |