1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
//! mitoo is a Rust toolkit library that encapsulates methods such as configuration reading, file operations, encryption and decryption, transcoding, regular expressions, and threading, with various custom or integrated Util tool classes.
//!
//! Yaml configuration reading
//! ```rust
//! use mitoo::YamlWrapper;
//!
//! #[test]
//! fn test_config_util() {
//! // read the configuration file
//! let wrapper = YamlWrapper::new("docs/config.yaml").unwrap();
//! // Directly convert the YAML string into YamlWrapper
//! // let warpper = YamlWrapper::from_string("......").unwrap();
//!
//! // Whether it is an object or an array, they are directly operated using the . (dot).
//! // Here, "address" is an object, "children" is an array, and "name" is an attribute of the objects within the "children" array.
//! let x = wrapper.get("address.children.name");
//! println!("address.children.name = {:?}", x);
//!
//! // The get method is used to retrieve an array, while get_one is used to retrieve the first element.
//! let x = wrapper.get_one("address.x.y").as_str().unwrap();
//! println!("address.x.y = {}", x);
//! }
//! ```
//!
//! Defined macros:
//!
//! - mitoo::set
//! - mitoo::map
//!
pub use CmdUtil;
pub use CollectionUtil;
pub use JsonWrapper;
pub use YamlWrapper;
pub use DateUtil;
pub use ;
pub use ;
pub use EnvUtil;
pub use Exception;
pub use FfmpegUtil;
pub use FileUtil;
pub use HexUtil;
pub use HttpUtil;
pub use IdUtil;
pub use LogUtil;
pub use ReUtil;
pub use SchedulingUtil;
pub use SecureUtil;
pub use StrUtil;
pub use RabbitMQUtil;
pub use ThreadUtil;
pub use ObjectStorage;
pub use ;
pub use UrlUtil;