Documentation ¶ Index ¶ func IsResponseYes(mode StdinMode) (bool, error) type StdinMode Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func IsResponseYes ¶ func IsResponseYes(mode StdinMode) (bool, error) IsResponseYes return true when the user press 'y'. Types ¶ type StdinMode ¶ type StdinMode bool StdinMode define the behaviour of stding when entering response. Confirm: Enter must be pressed to submit response. NoConfirm: response is directly submitted, aka 1 key press. const ( Confirm StdinMode = true NoConfirm StdinMode = false CurrentMode = NoConfirm ) Source Files ¶ View all Source files input.go Click to show internal directories. Click to hide internal directories.