aboutsummaryrefslogtreecommitdiff
path: root/utils/urls/functions.go
diff options
context:
space:
mode:
Diffstat (limited to 'utils/urls/functions.go')
-rw-r--r--utils/urls/functions.go30
1 files changed, 0 insertions, 30 deletions
diff --git a/utils/urls/functions.go b/utils/urls/functions.go
deleted file mode 100644
index 6561025..0000000
--- a/utils/urls/functions.go
+++ /dev/null
@@ -1,30 +0,0 @@
-package urls
-
-import "strings"
-
-func resolveFullName(namespace string, name string) string {
- switch namespace {
- case "":
- return name
- default:
- return namespace + "." + name
- }
-}
-
-func resolveFullPath(namespace string, path string) string {
- switch namespace {
- case "":
- return ensureLeadingSlash(path)
- default:
- return "/" + namespace + ensureLeadingSlash(path)
- }
-}
-
-func ensureLeadingSlash(path string) string {
- switch strings.HasPrefix(path, "/") {
- case true:
- return path
- default:
- return "/" + path
- }
-}