Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func P ¶
P prints msg, then reads a line of user input. The input line is then scanned into the args using fmt.Sscan().
This doesn't use fmt.Scanln() because prompt() is often called in a loop (running until user input is valid) and Scanln returns two separate errors for example when scanning into one integer and "a\n" is read from stdin, resulting in the prompt message being printed twice.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.