package
module
Version:
v1.1.1
Opens a new window with list of versions in this module.
Published: Feb 20, 2020
License: GPL-3.0
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
To-Listen List
A small record list for the music enthusiast.
Documentation
¶
CloseDB closes the inner database. Returns an error if resources couldn't
be properly cleaned up
InitDB takes care of initiating the inner database with the given name.
Returns an error if it couldn't be properly started.
func Sort(albums []Album)
Sort the albums
type Album struct {
ID int `storm:"increment,unique"`
Artist string `json:"artist"`
Title string `json:"title"`
Score float64 `json:"score"`
}
Album represents a recording, with artists' name along with a rating
GetAlbums returns a slice of every single record in the db
Save the album's data to the db.
Source Files
¶
Directories
¶
cmd
|
|
|
|
Click to show internal directories.
Click to hide internal directories.