README ¶ Confirm The confirm component allows you to quickly prompt the user to choose between Yes/No, True/False, etc.. Move with the arrow keys or HJKL/YN, confirm selection with CR You can found an example with and without options here Expand ▾ Collapse ▴ Documentation ¶ Index ¶ func Confirm(customOpts ...wtopts.Opts) (state bool, err error) func Draw(state *bool, opts wtopts.Opts) string func HandleKey(state *bool, key string, opts wtopts.Opts) error Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Confirm ¶ func Confirm(customOpts ...wtopts.Opts) (state bool, err error) func Draw ¶ func Draw(state *bool, opts wtopts.Opts) string func HandleKey ¶ func HandleKey(state *bool, key string, opts wtopts.Opts) error Types ¶ This section is empty. Source Files ¶ View all Source files confirm.go Directories ¶ Show internal Expand all Path Synopsis example Click to show internal directories. Click to hide internal directories.