Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ConfigFiles = []string{ path.Join(ConfigDir(), "mpdlrc/config.toml"), } )
Functions ¶
func HomeDirUser ¶
Types ¶
type Config ¶
type Config struct { MusicDir string LyricsDir string Debug bool MPD struct { Connection string Address string Password string } }
func DefaultConfig ¶
func DefaultConfig() (cfg *Config)
func (*Config) Expand ¶
func (cfg *Config) Expand()
Expand expands tilde ("~") and variables ("$VAR" or "${VAR}") in paths in Config. Sets LyricsDir to MusicDir if empty.
func (*Config) MergeTOMLFile ¶
MergeTOMLFile merges TOML file with Config.
Click to show internal directories.
Click to hide internal directories.