Documentation ¶
Index ¶
Constants ¶
View Source
const ApiTimeout = 20
View Source
const BackendUrl = "https://api.swaglyrics.dev"
Variables ¶
View Source
var Aln = regexp.MustCompile(`[^ \-a-zA-Z0-9]+`) // matches non space or - or alphanumeric characters
View Source
var Brc = regexp.MustCompile(`([(\[](feat|ft|From|Feat|from "[^"]*")[^)\]]*[)\]]|- .*)`)
View Source
var FetchLyricsError = errors.New("couldn't fetch lyrics from genius")
View Source
var InvalidSongError = errors.New("invalid song")
View Source
var Nlt = regexp.MustCompile(`[^\x00-\x7F\x80-\xFF\p{Latin}]`) // match only latin characters,
View Source
var Spc = regexp.MustCompile(` *- *| +`) // matches one or more spaces
View Source
var Wth = regexp.MustCompile(` *\(with ([^)]+)\)`) // capture text after with
Functions ¶
func NormalizeArtist ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.