# 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
相关推荐
2501_9159090612 分钟前
如何保护 iOS IPA 文件中资源与文件的安全,图片、JSON重命名浮尘笔记21 分钟前
Go语言临时对象池:sync.Pool的原理与使用组合缺一2 小时前
Json Dom 怎么玩转?wtsolutions3 小时前
MCP Server Integration - JSON to Excel for AI and Automation\xin3 小时前
Fastjson 1.2.45仅JSON接口反序列化漏洞司机20484 小时前
将virtuoso原理图信息导出到json文件Clarence Liu5 小时前
AI Agent开发(2) - 深入解析 A2A 协议与 Go 实战指南源代码•宸12 小时前
Golang原理剖析(defer、defer面试与分析)Sylvia33.12 小时前
网球/羽毛球数据API:专业赛事数据服务的技术实现且去填词12 小时前
三色标记法与混合写屏障:Go GC 垃圾回收全流程解析