Sitemap protocol library in Go.
Go version 1.13
go get github.com/FoodyTech/sitemap
mysite := `<some sitemap in XML>`
smap, err := sitemap.ParseString(mysite)
if err != nil {
// process on error
}
for _, url := smap.URL {
println(url.Location)
println(url.LastModification)
println()
}
See these docs.