# 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
相关推荐
小羊在睡觉5 小时前
力扣84. 柱状图中最大的矩形油炸自行车5 小时前
Claude Code 错误:API Error: 400 Failed to deserialize the JSON body into theruxingli13 小时前
Golang iota详解暗冰ཏོ15 小时前
Go 语言从入门到后端项目实战完整指南Reisentyan16 小时前
[Advance]GoLang Learn Data Day 4brycegao32117 小时前
Vue3+Go 全栈项目上线阿里云|从 0 到 1 踩坑全纪录NiceCloud喜云17 小时前
Claude Code 跑 HyperFrames 实测:本地生成 AI 视频素材全流程会编程的土豆18 小时前
Go 里的 error 接口 + 假 nil(超级重点)逍遥德18 小时前
PostgreSQL --- JSON 函数详解basketball61618 小时前
Golang:基本输入输出使用方法总结