Embed static files and HTML templates into the binary

This commit is contained in:
Vojtěch Káně
2021-04-25 15:17:39 +02:00
parent 49f00e0665
commit ab3ee4366b
5 changed files with 37 additions and 21 deletions

9
ui/embed.go Normal file
View File

@@ -0,0 +1,9 @@
package ui
import "embed"
//go:embed html/*.tmpl.html
var HTMLTemplates embed.FS
//go:embed static
var StaticFiles embed.FS