Documentation
¶
Index ¶
- func Ask(prompt string) (string, error)
- func AskBool(prompt string, target *bool, current bool) error
- func AskInt(prompt string, target *int, current int) error
- func AskOptions(prompt string, def string, required bool, mask bool) (string, error)
- func AskPassword(prompt string) (string, error)
- func AskString(prompt string, target *string, current string) error
- func AskStringArray(prompt string, def []string, required bool) ([]string, error)
- func WriteTable(obj interface{}, header ...string)
- func WriteTableTo(w io.Writer, obj interface{}, header ...string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AskOptions ¶
AskOptions ...
func AskStringArray ¶
AskStringArray convert string array to string and asks
func WriteTable ¶
func WriteTable(obj interface{}, header ...string)
WriteTable render the provided object as a table, object can be map, struct or array of struct(s)
func WriteTableTo ¶
WriteTableTo render the provided object to writer as a table, object can be map, struct or array of struct(s)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.