take care of warnings

This commit is contained in:
mollusk 2018-07-06 04:23:22 -07:00
parent d0b4567855
commit 9b973356a8

View File

@ -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)
}