This commit is contained in:
2026-10-05 07:40:34 +08:00
parent 5a7ac2e5d9
commit d13088bfd5
22 changed files with 1369 additions and 0 deletions
+14
View File
@@ -0,0 +1,14 @@
// Package web 以 go:embed 內嵌 HTML 模板與靜態資源,讓部署只需單一執行檔。
package web
import "embed"
// TemplatesFS 內嵌 web/templates 下的所有模板。
//
//go:embed templates
var TemplatesFS embed.FS
// StaticFS 內嵌 web/static 下已建置的靜態資源(不含尚未編譯的原始 CSS)。
//
//go:embed static/css
var StaticFS embed.FS