From 12563f26eeb68c55dd35cac4e94033e4deacf750 Mon Sep 17 00:00:00 2001 From: Mohammed Rabil Date: Sat, 26 Aug 2023 16:36:58 +0530 Subject: [PATCH] Fix windows static files error --- cmd/jiotv_go/embed_files.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/jiotv_go/embed_files.go b/cmd/jiotv_go/embed_files.go index e5194ce7..7d6fefa5 100644 --- a/cmd/jiotv_go/embed_files.go +++ b/cmd/jiotv_go/embed_files.go @@ -3,7 +3,7 @@ package main import ( "embed" "io/fs" - "path/filepath" + "path" ) //go:embed templates @@ -17,7 +17,7 @@ type staticFS struct { } func (sfs *staticFS) Open(name string) (fs.File, error) { - return sfs.fs.Open(filepath.Join("static", name)) + return sfs.fs.Open(path.Join("static", name)) } var staticEmbed = &staticFS{staticEmbedFS} \ No newline at end of file