From 9b973356a80255ea89b2997d980d63d370c952e9 Mon Sep 17 00:00:00 2001 From: mollusk Date: Fri, 6 Jul 2018 04:23:22 -0700 Subject: [PATCH] take care of warnings --- main.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/main.go b/main.go index bf593f5..dbcba47 100644 --- a/main.go +++ b/main.go @@ -44,6 +44,7 @@ func initGame() { ClearScreen() } +//ClearScreen clear all output on screen func ClearScreen() { cmd := exec.Command("clear") cmd.Stdout = os.Stdout @@ -51,11 +52,11 @@ func ClearScreen() { } func input(s string) (string, error) { - stdin_buf := bufio.NewReader(os.Stdin) + stdinBuf := bufio.NewReader(os.Stdin) fmt.Print(s) - text, err := stdin_buf.ReadString('\n') + text, err := stdinBuf.ReadString('\n') if err != nil { panic(err) }