restore html when load

This commit is contained in:
zu1k
2020-09-05 12:23:53 +08:00
parent c27411dc3d
commit 53e5dc4011

View File

@@ -206,6 +206,7 @@ func Run() {
}
func loadTemplate() (t *template.Template, err error) {
_ = binhtml.RestoreAssets("", "assets/html")
t = template.New("")
for _, fileName := range binhtml.AssetNames() {
data := binhtml.MustAsset(fileName)