![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/thxi/sitemap
A sitemap.xml parser for go
go get github.com/thxi/sitemap
To fetch the sitemap:
u := "https://myanimelist.net/sitemap/index.xml"
r, err := FetchFromURL(u)
// or use FetchFromURLwithClient()
// r, err := FetchFromURLwithClient(u, myCustomHttpClient)
if err != nil {
panic(err)
}
defer r.Close()
// ...
Additionally, you can use Fetch(url).
This will firstly check /robots.txt for Sitemap:...
section. It will default to /sitemap.xml if the section could not be found.
u := "https://myanimelist.net"
r, err := Fetch(u)
if err != nil {
panic(err)
}
defer r.Close()
// ...
All Fetch(...) methods will return FetchError
if something goes wrong.
The error can be unwrapped for inspection by using errors.Unwrap(err)
Parse the sitemap (or the sitemapindex)
s, err := ParseSitemap(r)
// or
si, err := ParseSitemapIndex(r)
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.