This commit is contained in:
Gokcehan committed 2016-09-02 23:13:37 +03:00
1 parent 607cd7aeff
commit f81146ae1e
1 file changed
+1 -5
+1 -5
View File
@@ -1,7 +1,6 @@
package main package main
import ( import (
"fmt"
"io" "io"
"io/ioutil" "io/ioutil"
"log" "log"
@@ -40,12 +39,9 @@ type Scanner struct {
} }
func newScanner(r io.Reader) *Scanner { func newScanner(r io.Reader) *Scanner {
// TODO: read input beforehand
buf, err := ioutil.ReadAll(r) buf, err := ioutil.ReadAll(r)
if err != nil { if err != nil {
msg := fmt.Sprintf("scanning: %s", err) log.Printf("scanning: %s", err)
// app.ui.message = msg
log.Print(msg)
} }
var eof bool var eof bool