diff options
-rw-r--r-- | sd.go | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -97,10 +97,13 @@ func main() { var key, val string db.QueryRow("SELECT key, val FROM cards WHERE idx=?", i).Scan(&key, &val) fmt.Println(key) + + // Wait for confirmation + var b []byte = make([]byte, 1) + os.Stdin.Read(b) fmt.Println(val) // Read user input - var b []byte = make([]byte, 1) os.Stdin.Read(b) if b[0] == byte('y') { w >>= 1 |