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
a3df50090d
commit
e660c05544
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()
|
||||
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