mirror of
https://codeberg.org/scip/kleingebaeck.git
synced 2026-03-12 02:21:45 +01:00
check return of ReadString()
This commit is contained in:
committed by
T.v.Dein
parent
4c10ae89f8
commit
834fbcd9c5
5
main.go
5
main.go
@@ -49,7 +49,10 @@ func init() {
|
|||||||
fmt.Println("Please open a command shell and run it from there.")
|
fmt.Println("Please open a command shell and run it from there.")
|
||||||
fmt.Println()
|
fmt.Println()
|
||||||
fmt.Print("Press any key to quit: ")
|
fmt.Print("Press any key to quit: ")
|
||||||
bufio.NewReader(os.Stdin).ReadString('\n')
|
_, err := bufio.NewReader(os.Stdin).ReadString('\n')
|
||||||
|
if err != nil {
|
||||||
|
panic(err)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user