Documentation ¶
Index ¶
- func Choose(ctx context.Context, choices []string, prompt string) (string, bool)
- func ReadLine(ctx context.Context, prompt string) string
- func ReadLineWithDefault(ctx context.Context, prompt, defaultValue string) string
- func ReadNonNegativeInt(ctx context.Context, prompt string, defaultZero bool) int
- func StrMap(choices []string) map[string]bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Choose ¶
Choose presents a user with a set of valid choices, but also allows making another choice.
func ReadLineWithDefault ¶
ReadLineWithDefault acts as ReadLine() but returns a default value when the user presses enter.
func ReadNonNegativeInt ¶
ReadNonNegativeInt reads a line from stdin and returns it as int.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.