aboutsummaryrefslogtreecommitdiff
path: root/http_template_funcs.go
diff options
context:
space:
mode:
authorRunxi Yu <me@runxiyu.org>2025-03-25 03:03:25 +0800
committerRunxi Yu <me@runxiyu.org>2025-03-25 03:03:25 +0800
commit99fefccd70d3d006a9f3ddccc45eda559af1f197 (patch)
tree44d7a59fe9a041385136787bc1a06496b27ad65d /http_template_funcs.go
parentUse cache for raw files too (diff)
downloadforge-99fefccd70d3d006a9f3ddccc45eda559af1f197.tar.gz
forge-99fefccd70d3d006a9f3ddccc45eda559af1f197.tar.zst
forge-99fefccd70d3d006a9f3ddccc45eda559af1f197.zip
Fix group path trailing slash
Diffstat (limited to 'http_template_funcs.go')
-rw-r--r--http_template_funcs.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/http_template_funcs.go b/http_template_funcs.go
index 8d67aff..b94e528 100644
--- a/http_template_funcs.go
+++ b/http_template_funcs.go
@@ -37,3 +37,7 @@ func dereferenceOrZero[T any](p *T) T {
var z T
return z
}
+
+func minus(a, b int) int {
+ return a - b
+}