Skip to content

Commit 7ce1e23

Browse files
committed
repo: update readme example
1 parent 1d47036 commit 7ce1e23

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ sitemap = append(sitemap, &sitemaps.URL{
2424
Frequency: sitemaps.Weekly,
2525
Priority: sitemaps.Low,
2626
})
27+
28+
// w is io.Writer (e.g. http.ResponseWriter)
29+
_ = sitemap.Write(w)
2730
```
2831

2932
### License

0 commit comments

Comments
 (0)