摘要: GO 使用嵌套map应该多次分配空间 demo package main import ( "fmt" ) func main() { // 初始化一个map var tmp map[int64]interface{} //tmp[1] = "abc" // panic:assignment to 阅读全文
posted @ 2022-12-27 15:43 等你下课啊 阅读(245) 评论(0) 推荐(0)
摘要: GO json.Unmarshal() 解析不区分json字段的大小写 demo package main import ( "encoding/json" "fmt" ) type Demo struct { ABD string `json:"ABD"` } type Demo2 struct 阅读全文
posted @ 2022-12-27 15:09 等你下课啊 阅读(759) 评论(0) 推荐(0)
摘要: Uber Go 语言编码规范 Uber Go 语言编码规范 阅读全文
posted @ 2022-12-27 14:13 等你下课啊 阅读(28) 评论(0) 推荐(0)