From 1506f1ac6884127c40884a86e7d91d273851efb3 Mon Sep 17 00:00:00 2001 From: "Alexander \"Arav\" Andreev" Date: Tue, 28 Jun 2022 00:37:20 +0400 Subject: [PATCH] No need to move to sub-tree to assets dir. Assets dir is in path. --- web/web.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/web/web.go b/web/web.go index e74f155..1396aa6 100644 --- a/web/web.go +++ b/web/web.go @@ -2,7 +2,6 @@ package web import ( "embed" - "io/fs" "net/http" ) @@ -12,8 +11,7 @@ import ( var assetsDir embed.FS func Assets() http.FileSystem { - f, _ := fs.Sub(assetsDir, "assets") - return http.FS(f) + return http.FS(assetsDir) } func AssetsGetFile(path string) ([]byte, error) {