WangZiHe
WangZiHe
crossterm is a good terminal library. Recently I want to use it to develop a shell terminal. I want to add a grammar prompt to it. Just like bash, you...
I want to add struct,like this: ``` struct User { username: String, email: String, sign_in_count: u64, active: bool, } fn build_user(email: String, username: String) -> User { User { email,...
文件名修改
all level log is one color , in othe words not any change! why?
``` #[derive(Debug,Deserialize)] enum RoleType { Admin, User, VipUser, } #[derive(Debug, Deserialize)] struct User { name: String, age: u8, weight: u8, high: f32, #[serde(flatten)] role_type:RoleType } #[test] fn test01() { let...
``` val svHealth = ServiceHealthCache.newCache(healthClient, serviceName, false, 10, QueryOptions.BLANK) svHealth.addListener { newValues: Map -> run { println("----------------") logger.info(JSON.toJSONString(IMServerInstance.parserConsulClientServiceInstance(newValues))) } } svHealth.start() ``` **my log show twice callback for same service...