# 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
相关推荐
FRing0314 小时前
vue2干货总结10(json-server、vant-ui、postcss插件、axios二次封装、图形验证码、toast轻提示)用户2986985301415 小时前
使用 Python 将 JSON 转换为 Word 文档的实践指南九英里路1 天前
protobuf快速上手wuyk5552 天前
Spider-第09讲-三格式落盘CSV-Excel-JSONwuyk5553 天前
Spider-第07讲-JSON接口与正则提取程序员Query3 天前
day01-认识Go语言 + golang环境的安装喵了几个咪4 天前
GoWind Flow 拆解:一个 Go 工作流引擎与它的双模式设计器codeejun4 天前
每日一Go·MySQL-14、慢 SQL 产生原因全解xbzb5 天前
镜像到底存在哪:/var/lib/docker 的四级映射与 daemon.json 配置坤坤子吖6 天前
Linux网络编程:自定义应用层协议与 JSON 序列化