![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
github.com/rhnvrm/lyric-api-go
This library provides an API to search for lyrics from various providers.
Please refer to the test files, examples, and GoDoc for more details on using the providers.
go get github.com/rhnvrm/lyric-api-go
More examples can be found in the examples directory.
Give this library a spin,
git clone https://github.com/rhnvrm/lyric-api-go.git
cd lyric-api-go
go run example/search.go
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)
}
package main
import (
"fmt"
"github.com/rhnvrm/lyric-api-go"
)
func main() {
var (
artist = "John Lennon"
song = "Imagine"
)
l := lyrics.New(lyrics.WithoutProviders(), lyrics.WithGeniusLyrics("your_access_token_here"))
// Use the following if you wish to just add Genius as a fallback
// l := lyrics.New(lyrics.WithGeniusLyrics("your_access_token_here"))
lyric, err := l.Search(artist, song)
if err != nil {
fmt.Printf("%v: Lyrics for %v-%v were not found", err, artist, song)
}
fmt.Println(lyric)
}
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 or want to propose a feature.
FAQs
Unknown package
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.