aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRunxi Yu <me@runxiyu.org>2025-03-31 10:52:06 +0800
committerRunxi Yu <me@runxiyu.org>2025-03-31 10:52:06 +0800
commit7fc1f4cf22be75d588f74f9c4c3d3a531e840445 (patch)
tree4f709b702097cd718f54f28f53e7be0eee71437f
parentUpdate .golangci.yaml to v2 (diff)
downloadforge-7fc1f4cf22be75d588f74f9c4c3d3a531e840445.tar.gz
forge-7fc1f4cf22be75d588f74f9c4c3d3a531e840445.tar.zst
forge-7fc1f4cf22be75d588f74f9c4c3d3a531e840445.zip
Reformat
-rw-r--r--resources.go6
1 files changed, 4 insertions, 2 deletions
diff --git a/resources.go b/resources.go
index 995fb2e..54ff752 100644
--- a/resources.go
+++ b/resources.go
@@ -77,8 +77,10 @@ func loadTemplates() (err error) {
return err
}
-var staticHandler http.Handler
-var manHandler http.Handler
+var (
+ staticHandler http.Handler
+ manHandler http.Handler
+)
func init() {
staticFS, err := fs.Sub(resourcesFS, "static")