diff options
author | Thomas Voss <mail@thomasvoss.com> | 2025-01-05 20:24:12 +0100 |
---|---|---|
committer | Thomas Voss <mail@thomasvoss.com> | 2025-01-05 20:24:12 +0100 |
commit | 170b985eb621ae97dffe60c7bc284f495ace6fc7 (patch) | |
tree | 33377879bcae0f57a28120d51930f4b94a0dea40 /src/templates.go | |
parent | 3e34c08d9b265597f4bfb546eabffd3d4e687d3d (diff) |
Use the template FS
Diffstat (limited to 'src/templates.go')
-rw-r--r-- | src/templates.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/templates.go b/src/templates.go index 4c37af1..eadcafd 100644 --- a/src/templates.go +++ b/src/templates.go @@ -4,7 +4,6 @@ import ( "embed" "html/template" "log" - "os" "strings" "git.thomasvoss.com/euro-cash.eu/src/mintage" @@ -34,7 +33,7 @@ var ( ) func init() { - ents, err := os.ReadDir("src/templates") + ents, err := templateFS.ReadDir("templates") if err != nil { log.Fatalln(err) } |