SetInputScanner allows you to override the default input scanner with your own.
(scanner *bufio.Scanner)
| 13 | |
| 14 | // SetInputScanner allows you to override the default input scanner with your own. |
| 15 | func SetInputScanner(scanner *bufio.Scanner) { |
| 16 | inputScanner = scanner |
| 17 | } |
| 18 | |
| 19 | // GetInput reads input from an input buffer and returns the result as a string. |
| 20 | func GetInput(defaultValue string) string { |
no outgoing calls