From 9d59278035f4748dc0dfac45bf406d2da3fc35fd Mon Sep 17 00:00:00 2001 From: Amir Raminfar Date: Mon, 3 Dec 2018 13:09:02 -0800 Subject: [PATCH] Fixes version --- main.go | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/main.go b/main.go index 02a44b60..2f36a1bc 100644 --- a/main.go +++ b/main.go @@ -9,7 +9,6 @@ import ( log "github.com/sirupsen/logrus" flag "github.com/spf13/pflag" "html/template" - "io" "net/http" "strings" ) @@ -196,7 +195,7 @@ Loop: } func (h *handler) version(w http.ResponseWriter, r *http.Request) { - io.WriteString(w, version) - io.WriteString(w, commit) - io.WriteString(w, date) + fmt.Fprintln(w, version) + fmt.Fprintln(w, commit) + fmt.Fprintln(w, date) }