go install github.com/dreamsxin/go-sitemap/cmd/crawl@latestcrawl -u http://example.com -o sitemap.xml
crawl -u http://example.com -o sitemap.xml -c 1priority
priority.json
{
"default": {
"default": 0.4
},
"noquery": {
"0": 1.0,
"1": 0.9,
"2": 0.8,
"3": 0.6,
"4": 0.4
},
"hasquery": {
"0": 0.7,
"1": 0.7,
"2": 0.4,
"3": 0.2,
"4": 0.1
}
}crawl -u http://example.com -o sitemap.xml -p priority.jsonskip query
crawl -u http://example.com -o sitemap.xml -p priority.json -skip-query=trueskip fragment
crawl -u http://example.com -o sitemap.xml -p priority.json -skip-fragment=trueMIT