Documentation ¶ Index ¶ Variables func LenFiles() int func ListFiles() func SetMusicDir(dir string) type Song func AddSong(name string, path string) Song func AdvSearch() (Song, error) func GetRandom() Song func GetSongByID(id int) Song func Search(s string) []Song Constants ¶ This section is empty. Variables ¶ View Source var MusicDir string Functions ¶ func LenFiles ¶ func LenFiles() int func ListFiles ¶ func ListFiles() func SetMusicDir ¶ func SetMusicDir(dir string) Types ¶ type Song ¶ type Song = models.Song func AddSong ¶ func AddSong(name string, path string) Song func AdvSearch ¶ func AdvSearch() (Song, error) func GetRandom ¶ func GetRandom() Song func GetSongByID ¶ func GetSongByID(id int) Song func Search ¶ func Search(s string) []Song Source Files ¶ View all Source files fileManager.go search.go Click to show internal directories. Click to hide internal directories.