Versions in this module Expand all Collapse all v0 v0.0.1 Nov 20, 2021 Changes in this version + const ApiTimeout + const BackendUrl + var Aln = regexp.MustCompile(`[^ \-a-zA-Z0-9]+`) + var Brc = regexp.MustCompile(`([(\[](feat|ft|From|Feat|from "[^"]*")[^)\]]*[)\]]|- .*)`) + var FetchLyricsError = errors.New("couldn't fetch lyrics from genius") + var InvalidSongError = errors.New("invalid song") + var Nlt = regexp.MustCompile(`[^\x00-\x7F\x80-\xFF\p{Latin}]`) + var Spc = regexp.MustCompile(` *- *| +`) + var Wth = regexp.MustCompile(` *\(with ([^)]+)\)`) + func GetLyrics(song types.Song) (string, error) + func NormalizeArtist(artist string) string + func Stripper(song types.Song) string