Documentation ¶
Overview ¶
Package display prints and receives input from the console.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Action ¶
Action displays the specified action message. If t is not nil, the message is associated with the current test case.
func Banner ¶
Banner displays a banner message with the specified lines. If t is not nil, the message is associated with the current test case.
func Menu ¶
Menu displays a menu with the specified message and list of options and returns the 1-indexed option number that the user selected.
func ReadLine ¶
func ReadLine() string
ReadLine reads a line of user input. Exits fatally if the reader has not been started.
func ReaderStarted ¶
func ReaderStarted() bool
ReaderStarted returns whether or not the reader has started.
Types ¶
Click to show internal directories.
Click to hide internal directories.