feat: Bundle assets in binary using go:embed (#340)

Fixes #47
This commit is contained in:
TwiN authored and GitHub committed 2022-10-09 21:33:31 -04:00
1 parent 47dd18a0b5
commit 00b56ecefd
16 files changed
+135 -83

No files matched your search

+13
View File
@@ -0,0 +1,13 @@
package static
import "embed"
var (
//go:embed static
FileSystem embed.FS
)
const (
RootPath = "static"
IndexPath = RootPath + "/index.html"
)