Skip to content
This repository has been archived by the owner on Mar 19, 2021. It is now read-only.

Commit

Permalink
Use term.Write() to write to console
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasmalkmus committed Jan 2, 2017
1 parent 1b54959 commit be81590
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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))))
}
}

Expand Down

0 comments on commit be81590

Please sign in to comment.