aboutsummaryrefslogtreecommitdiff
path: root/common.go
diff options
context:
space:
mode:
authorShulhan <ms@kilabit.info>2018-05-24 22:23:56 +0700
committerShulhan <ms@kilabit.info>2018-05-24 22:23:56 +0700
commitbb551cb628cc3a7fd7fb34000c64ac51b7b1d153 (patch)
tree081d550f0e09ddd8a163abf08f71643d7f2c9ad5 /common.go
parent4f4754c2fbd7912f20e87da9d42cc04e660aa101 (diff)
downloadbeku-bb551cb628cc3a7fd7fb34000c64ac51b7b1d153.tar.xz
Replace "log" with "fmt"
Diffstat (limited to 'common.go')
-rw-r--r--common.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/common.go b/common.go
index 121ee31..c4015c4 100644
--- a/common.go
+++ b/common.go
@@ -9,7 +9,6 @@ import (
"bytes"
"fmt"
"io"
- "log"
"os"
"strings"
)
@@ -103,7 +102,7 @@ func confirm(in io.Reader, msg string, defIsYes bool) bool {
for {
b, err = r.ReadByte()
if err != nil {
- log.Println(err)
+ fmt.Fprintln(os.Stderr, err)
break
}
if b == ' ' || b == '\t' {