Documentation ¶
Index ¶
- func AskFieldToChange(fields []string) (int, bool)
- func AskLine(promt string) (string, bool)
- func AskWord(message string) (string, bool)
- func Attention(f string, args ...interface{})
- func HandleString(promt string, handler func(string) bool) func() error
- func Input() string
- func IsStop(word string) bool
- func Options(msg string, withStop bool, options ...string) (string, int, bool)
- func OrString(str, def string, args ...interface{}) string
- func OrStringer(str fmt.Stringer, def string, args ...interface{}) string
- func OrValue(val interface{}, def string, args ...interface{}) string
- func Promt(promt string, vars ...interface{}) string
- func Yes(message string) (bool, string)
- func YesNo(promt string, args ...interface{}) bool
- type Action
- type ActionFull
- type ActionSimple
- type ActionWithErr
- type Menu
- type MenuItem
- type MenuItems
- type Recounter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AskFieldToChange ¶
Types ¶
type ActionFull ¶
func (ActionFull) Run ¶
func (action ActionFull) Run() (bool, error)
type ActionSimple ¶
type ActionSimple func()
func (ActionSimple) Run ¶
func (action ActionSimple) Run() (bool, error)
type ActionWithErr ¶
type ActionWithErr func() error
func (ActionWithErr) Run ¶
func (action ActionWithErr) Run() (bool, error)
type Menu ¶
Click to show internal directories.
Click to hide internal directories.