Documentation ¶
Overview ¶
Package lyric can be used to search and fetch song lyrics
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotFound = errors.New("Not found")
Functions ¶
func Fetch ¶
Fetch fetchs a lyrics by it's url (the parameter path (not called url to avoid problems with the url package)). It returns the lyric and an error.
func Search ¶
Search searchs for a query using Genius API. It returns the URL of the lyrics and an error, you can fetch the actual lyrics using Fetch(path). If you want a search with better results when the search term contains typos or not exactly the song name, you can use SearchDDG(query).
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.