[ nabia ]
[ aramo ]
[ 源代码: golang-github-tidwall-pretty ]
软件包: golang-github-tidwall-pretty-dev (1.0.5-1build1)
golang-github-tidwall-pretty-dev 的相关链接
Trisquel 的资源:
下载源码包 golang-github-tidwall-pretty:
- [golang-github-tidwall-pretty_1.0.5-1build1.dsc]
- [golang-github-tidwall-pretty_1.0.5.orig.tar.gz]
- [golang-github-tidwall-pretty_1.0.5-1build1.debian.tar.xz]
维护者:
Original Maintainers:
- Debian Go Packaging Team
- Andreas Henriksson
外部的资源:
- 主页 [github.com]
相似软件包:
Efficient JSON beautifier and compactor for Go
Pretty is a Go package that provides fast methods for formatting JSON for human readability, or to compact JSON for smaller payloads.
* pretty.Pretty will reformat the JSON for readability. * pretty.Color will add color to the result for printing to the terminal. The second param is used for a customizing the style, and passing nil will use the default pretty.TerminalStyle. * pretty.Ugly will reformat the JSON to make it more compact.
There's a PrettyOptions(json, opts) function which allows for customizing the output.