Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-pages.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'helpers.go')
-rw-r--r--helpers.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/helpers.go b/helpers.go
index cd989b97..edcf583d 100644
--- a/helpers.go
+++ b/helpers.go
@@ -4,6 +4,7 @@ import (
"io/ioutil"
"log"
"net"
+ "strings"
)
func readFile(file string) (result []byte) {
@@ -28,3 +29,7 @@ func createSocket(addr string) (l net.Listener, fd uintptr) {
fd = f.Fd()
return
}
+
+func endsWithSlash(path string) bool {
+ return strings.HasSuffix(path, "/")
+}