mirror of
https://github.com/edg-l/sitewriter.git
synced 2024-11-09 17:48:24 +00:00
update readme
This commit is contained in:
parent
669d4ead81
commit
f5f296b59e
|
@ -15,7 +15,7 @@ It uses the [quick-xml](https://github.com/tafia/quick-xml) so it should be fast
|
||||||
|
|
||||||
```rust
|
```rust
|
||||||
use chrono::prelude::*;
|
use chrono::prelude::*;
|
||||||
use sitewriter::*;
|
use sitewriter::{ChangeFreq, UrlEntry, UrlEntryBuilder};
|
||||||
|
|
||||||
let urls = vec![
|
let urls = vec![
|
||||||
UrlEntryBuilder::default()
|
UrlEntryBuilder::default()
|
||||||
|
@ -63,7 +63,7 @@ use sitewriter::*;
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|
||||||
let result = Sitemap::generate_str(&urls).unwrap();
|
let result = sitewriter::generate_str(&urls);
|
||||||
println!("{}", result);
|
println!("{}", result);
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue