# struct use MarshalIndent
dataByte, err := json.MarshalIndent(v, "", " ")
# str json use gjson @pretty
gjson.Get(task.Config, "@pretty").String()
golang pretty-print json
Beer Home2024-07-27 13:03
相关推荐
xcLeigh1 天前
Go入门:无类型常量与类型常量的区别泡沫冰@1 天前
GO 语言基础lf13210271 天前
用 JSON Schema 管装修节点记录:从照片台账到可校验工程数据骇客野人1 天前
电商商城微服务架构设计方案(SpringCloud/Go+Vue3+MySQL+ES+RocketMQ)码农大叔的博客1 天前
golang示例:for九九乘法表圣殿骑士-Khtangc1 天前
Go-sync-Pool对象池最佳实践与源码分析互联网中的一颗神经元1 天前
01. Go 内存管理全景架构有脚就行1 天前
第24篇-Go-gRPC推理服务-高性能跨语言通信丰锋ff1 天前
7.2Qt中Json的操作bugcome_com2 天前
JWT 知识小课堂:从入门到精通,一文吃透 JSON Web Token