💄 improve: done #10 进度条

This commit is contained in:
naiba
2020-12-19 12:43:03 +08:00
parent 9dbbfac551
commit 13f90e7a1f
7 changed files with 141 additions and 182 deletions

View File

@@ -28,6 +28,9 @@ func ServeWeb(port uint) {
"css": func(s string) template.CSS {
return template.CSS(s)
},
"tag": func(s string) template.HTML {
return template.HTML(`<` + s + `>`)
},
"stf": func(s uint64) string {
return time.Unix(int64(s), 0).Format("2006年1月2号 15:04")
},