diff options
author | Runxi Yu <me@runxiyu.org> | 2025-03-19 11:39:54 +0800 |
---|---|---|
committer | Runxi Yu <me@runxiyu.org> | 2025-03-19 12:03:39 +0800 |
commit | 90ce7b1faf976d76329a8c02008cd84c78a753f5 (patch) | |
tree | 9374618661e2521fec73ab9fc6f1f0f8f68f0c2b /http_template_funcs.go | |
parent | Remove underscores from Go code, pt 3 (diff) | |
download | forge-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.go | 8 |
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) } |