Go 中 encoding/json
包提供了格式化输出 JSON 数据的方法。
1 |
|
1 | { |
使用制表格来缩进可以使用
1 | json.MarshalIndent(data, "", "/t") |
最近热读
扫码关注公众号,或搜索公众号“温欣爸比”
及时获取我的最新文章
