Documentation ¶
Overview ¶
Reading from stdin with readline support.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Input ¶
Reads a line from stdin using the readline library. It also prints a prompt if specified. This one doesn't return the error.
func InputLinuxOnly ¶
On Linux, it uses the fancy readline library. On Windows I had problems with the readline library in "cmd", thus on non-Linux systems we fall back to the normal Input() function. I couldn't test it on Mac, so feel free to improve this function.
func InputWithError ¶
Reads a line from stdin using the readline library. It also prints a prompt if specified. This one returns the error.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.