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:
authorJacob Vosmaer (GitLab) <jacob@gitlab.com>2018-03-29 17:43:39 +0300
committerNick Thomas <nick@gitlab.com>2018-03-29 17:43:39 +0300
commite7b9a2c510c47f53346f2402eecfec92849e613f (patch)
treebd78ed49680b09eae808ec381dd3202637fa7ca4 /helpers.go
parente51175062c0fada8fadc37f6fc96531ff750221b (diff)
Put domain code in a separate package
Diffstat (limited to 'helpers.go')
-rw-r--r--helpers.go5
1 files changed, 0 insertions, 5 deletions
diff --git a/helpers.go b/helpers.go
index b418eec3..f83f4db5 100644
--- a/helpers.go
+++ b/helpers.go
@@ -3,7 +3,6 @@ package main
import (
"io/ioutil"
"net"
- "strings"
)
func readFile(file string) (result []byte) {
@@ -28,7 +27,3 @@ func createSocket(addr string) (l net.Listener, fd uintptr) {
fd = f.Fd()
return
}
-
-func endsWithSlash(path string) bool {
- return strings.HasSuffix(path, "/")
-}