From 40d529704299c8023695939760849421dee5f64d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Magnus=20=C3=85hall?= Date: Wed, 12 Nov 2025 07:57:57 +0100 Subject: [PATCH] And read CSS from embedded FS. Bumped to v5 --- main.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/main.go b/main.go index 9226e7c..54cd430 100644 --- a/main.go +++ b/main.go @@ -17,7 +17,7 @@ import ( "strings" ) -const VERSION = "v4" +const VERSION = "v5" var ( flagVerbose bool @@ -88,8 +88,7 @@ func pageIndex(w http.ResponseWriter, r *http.Request) { // {{{ func pageCSS(w http.ResponseWriter, r *http.Request) { // {{{ w.Header().Add("Content-Type", "text/css") - //data, err := fs.ReadFile("static/css/main.css") - data, err := os.ReadFile("static/css/main.css") + data, err := fs.ReadFile("static/css/main.css") if err != nil { w.Write([]byte(err.Error())) return