Posted in

Go输出JSON字符串为何总多一层引号?——json.Marshal vs strconv.Quote vs fmt.Sprintf的语义差异与选型矩阵

第一章:Go输出JSON字符串为 … Go输出JSON字符串为何总多一层引号?——json.Marshal vs strconv.Quote vs fmt.Sprintf的语义差异与选型矩阵Read more

Posted in

Go map打印慢如蜗牛?实测对比5种方式性能差异:fmt.Printf vs json.Marshal vs custom Dumper(附Benchmark数据表)

第一章:Go map打印慢如蜗牛 … Go map打印慢如蜗牛?实测对比5种方式性能差异:fmt.Printf vs json.Marshal vs custom Dumper(附Benchmark数据表)Read more