feat: embed web assets

Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com>
This commit is contained in:
Mark Sagi-Kazar 2021-03-22 11:05:50 +01:00
parent 3f0ca9b361
commit 78fcac7568
No known key found for this signature in database
GPG Key ID: 34CC109EB5ED1C2A

14
web/web.go Normal file
View File

@ -0,0 +1,14 @@
package web
import (
"embed"
"io/fs"
)
//go:embed static/* templates/* themes/*
var files embed.FS
// FS returns a filesystem with the default web assets.
func FS() fs.FS {
return files
}