Embed static files and HTML templates into the binary
This commit is contained in:
9
ui/embed.go
Normal file
9
ui/embed.go
Normal 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
|
||||
Reference in New Issue
Block a user