mirror of
https://github.com/jht5945/rust_util.git
synced 2025-12-29 16:40:05 +08:00
feat: add example
This commit is contained in:
@@ -22,6 +22,11 @@ Update git crate:
|
|||||||
$ cargo update
|
$ cargo update
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Run example:
|
||||||
|
```
|
||||||
|
$ cargo run --example log
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
## Update Log
|
## Update Log
|
||||||
|
|
||||||
|
|||||||
6
examples/log.rs
Normal file
6
examples/log.rs
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
#[macro_use] extern crate rust_util;
|
||||||
|
|
||||||
|
// cargo run --example log
|
||||||
|
fn main() {
|
||||||
|
information!("Hello {}", "world!");
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user