From 170b985eb621ae97dffe60c7bc284f495ace6fc7 Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Sun, 5 Jan 2025 20:24:12 +0100 Subject: Use the template FS --- src/templates.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src') 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) } -- cgit v1.2.3