![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.
git.itmodulo.eu/apis/lyrics-api-go-extended
This is a fork of known lyrics-api-go providing extended functionality.
Work in progress...
Due to lack of response for issue, I forked repo to extend it for my needs
http.Client
(example case: proxy, change timeout, ...)import (
"fmt"
"github.com/hashicorp/go-retryablehttp"
"git.itmodulo.eu/Forks/lyrics-api-go-extended"
)
// Create http.Client using lib or by yourself, here you can specify proxy settings
myClient := retryablehttp.NewClient().StandardClient() // External
// Set UserAgent
lyrics.DefaultHeaderUserAgent() // Default
lyrics.AddToheaderMap("User-Agent", "Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:94.0) Gecko/20100101 Firefox/94.0") // or custom
// Set other Header Settings if needed (e.g. proxy auth goes here)
// ...
// Create lyrics object
l := lyrics.New(*myClient) // To use all providers
// Using Only a Certain Provider (here Genius)
l := lyrics.New(*myClient, lyrics.WithoutProviders(), lyrics.WithGeniusLyrics("your_access_token_here"))
// Specify artist and songTitle
artist := "..."
songTitle := "..."
// Actual search
lyric, err := l.Search(artist, songTitle)
if err != nil {
fmt.Printf("%v: Lyrics for %v-%v were not found", err, artist, songTitle)
}
//Print in console
fmt.Println(lyric)
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.