From be815901ff609819d20447cabd61e09f78c85f18 Mon Sep 17 00:00:00 2001 From: Lukas Malkmus Date: Mon, 2 Jan 2017 19:54:44 +0100 Subject: [PATCH] Use term.Write() to write to console --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index c68af76..78aeb40 100644 --- a/main.go +++ b/main.go @@ -61,7 +61,7 @@ func main() { fmt.Println("Error: " + err.Error()) continue } - fmt.Printf("%s\n", strconv.FormatFloat(res, 'G', -1, 64)) + term.Write([]byte(fmt.Sprintf("%s\n", strconv.FormatFloat(res, 'G', -1, 64)))) } }