Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultPath ¶
DefaultPath returns the default state file path.
func ParseQueueMode ¶
ParseQueueMode converts a persisted value into a queue mode.
func QueueModeString ¶
QueueModeString converts a queue mode into a persisted value.
Types ¶
type State ¶
type State struct {
BrowserDir string `toml:"browser_dir"`
BrowserHidden bool `toml:"browser_hidden"`
Focus string `toml:"focus"`
Volume *int `toml:"volume"`
QueueMode string `toml:"queue_mode"`
Playlist []Track `toml:"playlist"`
Playing int `toml:"playing"`
Cursor int `toml:"cursor"`
}
State captures UI-related state persisted across runs.
Click to show internal directories.
Click to hide internal directories.