summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordemo <demo@antix1>2026-05-28 12:35:35 -0400
committerdemo <demo@antix1>2026-05-28 12:35:35 -0400
commitc2f1c9a6eb8230e8fffd633d1f85cde80764c5b3 (patch)
treea9405babfee8fdac7514d4bb4d67225e9a35deb0
parent10ddae559ad28e21c7e1db99d29312907ce2c70f (diff)
feat: add header to xml output
-rw-r--r--xml.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/xml.go b/xml.go
index 3471bba..400ae8e 100644
--- a/xml.go
+++ b/xml.go
@@ -43,5 +43,6 @@ func toSitemap(seen map[url.URL]int) (string, error) {
return "", err
}
- return string(output), nil
+ withHeader := fmt.Sprintf("%s\n%s", xml.Header, output)
+ return withHeader, nil
}