diff options
author | Jacob Vosmaer (GitLab) <jacob@gitlab.com> | 2018-03-29 17:43:39 +0300 |
---|---|---|
committer | Nick Thomas <nick@gitlab.com> | 2018-03-29 17:43:39 +0300 |
commit | e7b9a2c510c47f53346f2402eecfec92849e613f (patch) | |
tree | bd78ed49680b09eae808ec381dd3202637fa7ca4 /helpers.go | |
parent | e51175062c0fada8fadc37f6fc96531ff750221b (diff) |
Put domain code in a separate package
Diffstat (limited to 'helpers.go')
-rw-r--r-- | helpers.go | 5 |
1 files changed, 0 insertions, 5 deletions
@@ -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, "/") -} |