添加README.md,加了点注释

This commit is contained in:
Zihaoxu2008
2025-01-24 22:57:01 +08:00
parent 790e1f7fd0
commit 0fe86415ce
4 changed files with 53 additions and 10 deletions

View File

@@ -1,4 +1,6 @@
// 处理json组件
// 一些杂七杂八的小东西可以放在这
// 处理json组件(有些TextComponent里面一堆extra看的我头皮发麻,所以整个这个)
pub fn parse_json_component(json: &str) -> String {
let data: serde_json::Value = serde_json::from_str(json).unwrap();
let mut res: String = String::new();