Skip to content
Sections
>> Trisquel >> 套件 >> nabia >> devel >> golang-github-tidwall-pretty-dev
nabia  ] [  aramo  ]
[ 原始碼: golang-github-tidwall-pretty  ]

套件: golang-github-tidwall-pretty-dev (1.0.0-2)

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.

其他與 golang-github-tidwall-pretty-dev 有關的套件

  • 依賴
  • 推薦
  • 建議

下載 golang-github-tidwall-pretty-dev

下載可用於所有硬體架構的
硬體架構 套件大小 安裝後大小 檔案
all 8.7 kB38 kB [文件列表]