Documentation ¶
Index ¶
- Variables
- func BlueString(text string) string
- func CyanString(text string) string
- func Error(message string, err error)
- func GreenString(text string) string
- func MagentaString(text string) string
- func Newline()
- func Print(s string)
- func Println(s string)
- func Quit()
- func ReadInput() string
- func RedString(text string) string
- func Sleep()
- func Success(s string)
- func Term(message string, err error)
- func Warning(message string)
- func YellowString(text string) string
- type Menu
- type MenuItem
- type TracksMenu
Constants ¶
This section is empty.
Variables ¶
View Source
var Output = colorable.NewColorableStdout()
Functions ¶
func BlueString ¶
func CyanString ¶
func GreenString ¶
func MagentaString ¶
func YellowString ¶
Types ¶
type Menu ¶
type Menu struct {
// contains filtered or unexported fields
}
func (*Menu) AddNewline ¶
func (m *Menu) AddNewline()
type MenuItem ¶
func (MenuItem) IsRunnable ¶
type TracksMenu ¶
type TracksMenu struct { GetTracks func(offset uint) ([]track.Track, error) Limit uint Offset uint // contains filtered or unexported fields }
TracksMenu gets tracks from GetTracks function, show these tracks in menu and adds selected to TracksMenu.selected.
TracksMenu finishes when user pushes 'd' button.
func (TracksMenu) Show ¶
func (tm TracksMenu) Show() []track.Track
Show gets tracks from GetTracks function, show these tracks, adds returns selected.
Click to show internal directories.
Click to hide internal directories.