# 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
相关推荐
Wx-bishekaifayuan4 小时前
springboot生活商城系统21035-计算机课程设计、毕业设计譕痕6 天前
JSONObject与JSONArray封装数据格式区别A黄俊辉A6 天前
uniapp webview中实现 app和内嵌的H5双向通信ttwuai6 天前
Go开源后台管理系统推荐:怎么按技术栈和边界比较4个官方仓库?codeejun6 天前
每日一Go·MySQL-5、锁机制全解析Achou.Wang6 天前
k8s中nginx worker process自动设置伞伞悦读6 天前
【第37期】Python JSON 与配置详解:序列化、反序列化、嵌套结构和配置文件Mikko76 天前
jackson-databind 升到 2.21.6 就安全了吗?jackson-core 是另一个坐标,它那条 high 全局库至今没收指尖的爷7 天前
ARM 架构 Ubuntu(RK3588/aarch64)go开发环境安装手册名字还没想好☜7 天前
Go 实现指数退避重试:context 取消、抖动 jitter 与什么时候别重试