# 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
相关推荐
蓝宝石的傻话7 小时前
因为MiBeeNVR,决定接 onvif-go 自己管理并重构ttwuai13 小时前
Go 后台管理系统组件库文档怎么写,才不会坑后续维护?2601_9620662314 小时前
golang超详细基础入门教程_golang教程互联网中的一颗神经元1 天前
10. Large 对象分配:直接路径microrain1 天前
从关系库硬扛到专业时序引擎:SagooIoT时序数据存储的架构取舍Vect__1 天前
channel 底层剖析李燚1 天前
数据库迁移不翻车:golang-migrate 实战,143 个 DDL 有序执行(第97篇-E83)运维开发笔记2 天前
7.1 Go Map 基础光泽雨2 天前
JSON /XML转换运维开发笔记2 天前
7.2 Go Map 进阶