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:
authorBalasankar "Balu" C <balasankarc@autistici.org>2021-02-17 10:56:11 +0300
committerBalasankar "Balu" C <balasankarc@autistici.org>2021-03-01 08:35:57 +0300
commitb7e2085b76c11212ac41f80672d5c5f9b0287fee (patch)
tree92bb6e221257aeea9da8986c6f1e2a297b9c089c /helpers.go
parent01da18ea5717658eb98f539f921ed02fd35bd3d1 (diff)
Move configuration parsing to Config package
Changelog: changed Signed-off-by: Balasankar "Balu" C <balasankarc@autistici.org>
Diffstat (limited to 'helpers.go')
-rw-r--r--helpers.go9
1 files changed, 0 insertions, 9 deletions
diff --git a/helpers.go b/helpers.go
index d71f2b2c..17b464d0 100644
--- a/helpers.go
+++ b/helpers.go
@@ -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) {