Skip to content
This repository has been archived by the owner on Jun 19, 2023. It is now read-only.
/ lyric-api-go Public archive

🎼 API to search for lyrics from various providers.

License

Notifications You must be signed in to change notification settings

rhnvrm/lyric-api-go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Lyric API written in Golang GoDoc

This library provides an API to search for lyrics from various providers.

Installing

go get

    $ go get github.com/rhnvrm/lyric-api-go

Usage Example

More examples can be found in the examples directory.

package main

import (
	"fmt"

	"github.com/rhnvrm/lyric-api-go"
)

func main() {
	var (
		artist = "John Lennon"
		song   = "Imagine"
	)

	l := lyrics.New()
	lyric, err := l.Search(artist, song)

	if err != nil {
		fmt.Printf("Lyrics for %v-%v were not found", artist, song)
	}
	fmt.Println(lyric)
}

Contributing

You are more than welcome to contribute to this project. Fork and make a Pull Request, or create an Issue if you see any problem.