From c75bd748230d54701a84881b88503a0ea8e3b986 Mon Sep 17 00:00:00 2001 From: bel Date: Sat, 28 Oct 2023 10:54:23 -0600 Subject: [PATCH] todo --- cmd/http/main.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/cmd/http/main.go b/cmd/http/main.go index 73bf947..e8679af 100644 --- a/cmd/http/main.go +++ b/cmd/http/main.go @@ -26,7 +26,11 @@ import ( ) //go:embed public/* -var staticFileDir embed.FS +var _staticFileDir embed.FS +var staticFileDir = func() embed.FS { + panic("if dev mode then return live") + return _staticFileDir +} func Main() { foo := flag.String("foo", "bal", "bal or reg")