Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Panics when there are no urls in url set #21

Open
meirf opened this issue Jun 22, 2018 · 0 comments
Open

Panics when there are no urls in url set #21

meirf opened this issue Jun 22, 2018 · 0 comments

Comments

@meirf
Copy link

meirf commented Jun 22, 2018

I expected the below code to return a sitemap with headings but no urls. Instead the code panics.

package main
import (
	"github.com/ikeikeikeike/go-sitemap-generator/stm"
)
func main() {
	sm := stm.NewSitemap()
	sm.Create()
        sm.XMLContent()
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant