# 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
相关推荐
2601_962066232 小时前
golang超详细基础入门教程_golang教程互联网中的一颗神经元15 小时前
10. Large 对象分配:直接路径microrain18 小时前
从关系库硬扛到专业时序引擎:SagooIoT时序数据存储的架构取舍Vect__20 小时前
channel 底层剖析李燚1 天前
数据库迁移不翻车:golang-migrate 实战,143 个 DDL 有序执行(第97篇-E83)运维开发笔记1 天前
7.1 Go Map 基础光泽雨1 天前
JSON /XML转换运维开发笔记1 天前
7.2 Go Map 进阶晴天161 天前
VS Code `launch.json` 指南(Node.js版)-Day30西瓜很甜哟1 天前
golang每日十题第2期