diff options
Diffstat (limited to 'helpers.go')
-rw-r--r-- | helpers.go | 9 |
1 files changed, 0 insertions, 9 deletions
@@ -1,21 +1,12 @@ package main import ( - "io/ioutil" "net" "os" "gitlab.com/gitlab-org/labkit/errortracking" ) -func readFile(file string) (result []byte) { - result, err := ioutil.ReadFile(file) - if err != nil { - fatal(err, "could not read file") - } - return -} - // Be careful: if you let either of the return values get garbage // collected by Go they will be closed automatically. func createSocket(addr string) (net.Listener, *os.File) { |