aboutsummaryrefslogtreecommitdiff
path: root/resources.go
diff options
context:
space:
mode:
authorRunxi Yu <me@runxiyu.org>2025-02-12 11:47:11 +0800
committerRunxi Yu <me@runxiyu.org>2025-02-12 11:47:11 +0800
commit83f9f192b52020b7fecc8ff9ad3f976ea7485935 (patch)
treef0b55921102d4e099c513124736ccffeb9065da0 /resources.go
parentgit_misc.go: Merge types.go into here (diff)
downloadforge-83f9f192b52020b7fecc8ff9ad3f976ea7485935.tar.gz
forge-83f9f192b52020b7fecc8ff9ad3f976ea7485935.tar.zst
forge-83f9f192b52020b7fecc8ff9ad3f976ea7485935.zip
*.go: Reformat
Diffstat (limited to 'resources.go')
-rw-r--r--resources.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/resources.go b/resources.go
index bd5f37b..12acb8f 100644
--- a/resources.go
+++ b/resources.go
@@ -37,6 +37,7 @@ func load_templates() (err error) {
}
var static_handler http.Handler
+
func init() {
static_fs, err := fs.Sub(resources_fs, "static")
if err != nil {
@@ -44,4 +45,3 @@ func init() {
}
static_handler = http.StripPrefix("/:/static/", http.FileServer(http.FS(static_fs)))
}
-