aboutsummaryrefslogtreecommitdiff
path: root/http_template_funcs.go
diff options
context:
space:
mode:
authorRunxi Yu <me@runxiyu.org>2025-03-19 11:39:54 +0800
committerRunxi Yu <me@runxiyu.org>2025-03-19 12:03:39 +0800
commit90ce7b1faf976d76329a8c02008cd84c78a753f5 (patch)
tree9374618661e2521fec73ab9fc6f1f0f8f68f0c2b /http_template_funcs.go
parentRemove underscores from Go code, pt 3 (diff)
downloadforge-90ce7b1faf976d76329a8c02008cd84c78a753f5.tar.gz
forge-90ce7b1faf976d76329a8c02008cd84c78a753f5.tar.zst
forge-90ce7b1faf976d76329a8c02008cd84c78a753f5.zip
Remove underscores from Go code, pt 4
Diffstat (limited to 'http_template_funcs.go')
-rw-r--r--http_template_funcs.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/http_template_funcs.go b/http_template_funcs.go
index 016d268..9609e61 100644
--- a/http_template_funcs.go
+++ b/http_template_funcs.go
@@ -9,19 +9,19 @@ import (
"strings"
)
-func first_line(s string) string {
+func firstLine(s string) string {
before, _, _ := strings.Cut(s, "\n")
return before
}
-func base_name(s string) string {
+func baseName(s string) string {
return path.Base(s)
}
-func path_escape(s string) string {
+func pathEscape(s string) string {
return url.PathEscape(s)
}
-func query_escape(s string) string {
+func queryEscape(s string) string {
return url.QueryEscape(s)
}