Posted in

Go语言含义不可绕过的5个硬核事实:① no exceptions ② no generics pre-1.18 ③ no optional parameters ④ no implicit conversions ⑤ no macro system —— 每一条都是语义确定性的代价

第一章:no exception … Go语言含义不可绕过的5个硬核事实:① no exceptions ② no generics pre-1.18 ③ no optional parameters ④ no implicit conversions ⑤ no macro system —— 每一条都是语义确定性的代价Read more

Posted in

从开发到上线:map[string]interface{}转string全流程校验清单(含schema校验、环形引用检测、敏感字段脱敏)

第一章:从开发到上线:map[s … 从开发到上线:map[string]interface{}转string全流程校验清单(含schema校验、环形引用检测、敏感字段脱敏)Read more

Posted in

Go新手最易忽略的5个类型陷阱:当map[string]interface{}中的”age”: 25实际是float64,你的int转换正在静默截断!

第一章:Go新手最易忽略的5个类 … Go新手最易忽略的5个类型陷阱:当map[string]interface{}中的”age”: 25实际是float64,你的int转换正在静默截断!Read more