toukii.github.io

go

原理解读

sync.Map

http包的扩展

实用技巧

json 序列化tag

,string ,omitxxx 接口:MarshalJSON UnMarshalJSON

json 反序列化有个有趣的现象:{"123":{}} 可以用 map[string]interface{} 或 map[int64]interface{} 接收。