mirror of
https://github.com/edg-l/sitewriter.git
synced 2024-11-09 17:48:24 +00:00
format readme better
This commit is contained in:
parent
f5f296b59e
commit
2203737431
|
@ -17,7 +17,7 @@ It uses the [quick-xml](https://github.com/tafia/quick-xml) so it should be fast
|
||||||
use chrono::prelude::*;
|
use chrono::prelude::*;
|
||||||
use sitewriter::{ChangeFreq, UrlEntry, UrlEntryBuilder};
|
use sitewriter::{ChangeFreq, UrlEntry, UrlEntryBuilder};
|
||||||
|
|
||||||
let urls = vec![
|
let urls = vec![
|
||||||
UrlEntryBuilder::default()
|
UrlEntryBuilder::default()
|
||||||
.loc("https://edgarluque.com/projects".parse().unwrap())
|
.loc("https://edgarluque.com/projects".parse().unwrap())
|
||||||
.build()
|
.build()
|
||||||
|
@ -61,10 +61,10 @@ use sitewriter::{ChangeFreq, UrlEntry, UrlEntryBuilder};
|
||||||
Utc.from_utc_datetime(&Local.ymd(2020, 12, 5).and_hms(12, 30, 0).naive_utc()),
|
Utc.from_utc_datetime(&Local.ymd(2020, 12, 5).and_hms(12, 30, 0).naive_utc()),
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|
||||||
let result = sitewriter::generate_str(&urls);
|
let result = sitewriter::generate_str(&urls);
|
||||||
println!("{}", result);
|
println!("{}", result);
|
||||||
```
|
```
|
||||||
|
|
||||||
### CREV - Rust code reviews - Raise awareness
|
### CREV - Rust code reviews - Raise awareness
|
||||||
|
|
Loading…
Reference in a new issue