From 555b83d5de531bf26e94dc3c7f74b27482995145 Mon Sep 17 00:00:00 2001 From: gutmet Date: Sun, 11 Oct 2020 13:26:11 +0200 Subject: [PATCH] remove unnecessary import --- go.mod | 2 +- server.go | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/go.mod b/go.mod index f7de00b..4650ed3 100644 --- a/go.mod +++ b/go.mod @@ -1,3 +1,3 @@ module git.gutmet.org/simpleserver.git -require git.gutmet.org/goutil.git v0.0.0-20181208191316-76ae04a2662a +go 1.14 diff --git a/server.go b/server.go index 569ad3c..fcefbc2 100644 --- a/server.go +++ b/server.go @@ -2,7 +2,7 @@ package simpleserver import ( "fmt" - "git.gutmet.org/goutil.git" + "io/ioutil" "net/http" "os" "os/signal" @@ -20,8 +20,8 @@ func viewHandler(root string, w http.ResponseWriter, r *http.Request) { file = filepath.Join(file, "index.html") } fmt.Println("GET " + file) - content, _ := goutil.ReadFile(file) - fmt.Fprint(w, content) + content, _ := ioutil.ReadFile(file) + fmt.Fprint(w, string(content)) } func Serve(root string) {