/go-sitemap

create dynamic sitemap for user-content URL or etc.

Primary LanguageGoMIT LicenseMIT

go-sitemap

forthebadge

generates sitemap dynamically, for user-generated URLs

install

go get github.com/xis/go-sitemap

usage

import "github.com/xis/go-sitemap"

func main() {
	var s sitemap.Sitemap
	err := sitemap.Create("www.example.com/path/", []string{"userid", "contentid", "something", "somethingelse"}).Result(&s)
	if err != nil {
		panic(err)
	}
}