go-tower: first release v0.1.0

This commit is contained in:
2026-02-14 14:02:21 +00:00
parent 93a16c3665
commit 3576d420d2
13 changed files with 753 additions and 1 deletions

14
path.go Normal file
View File

@@ -0,0 +1,14 @@
package tower
import "strings"
func normalizePath(path string) string {
if path == "" {
return "/"
}
path = strings.TrimLeft(path, "/")
path = strings.TrimRight(path, "/")
return "/" + path
}