lyrics

package
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 28, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrInstrumental = errors.New("instrumental")

ErrInstrumental is returned when Genius marks a song as instrumental.

Functions

func Search(ctx context.Context, client *http.Client, track, artist string) (string, error)

Search finds lyrics for a track on Genius. Returns the lyrics text or an error. Returns empty string if no lyrics found. Returns ErrInstrumental if Genius marks the song as instrumental. The context can be used to cancel or set a deadline on the search.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL