Registry / serialization / tylerbrock-colorjson

tylerbrock-colorjson

JSON →
library0.0.0-20200706003622-8a50f05110d2gogounverified

Package colorjson provides colored JSON output for terminal display.

go get github.com/TylerBrock/colorjson
INSTALL
IMPORT
SIG · TYLERBROCK-COLORJS
T
tylerbrock-colorjson
serializationgov0.0.0-20200706003622-8a50f05110d2
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

colorjson
github.com/TylerBrock/colorjson

Format and print JSON with color highlighting

package main import ( "fmt" "github.com/TylerBrock/colorjson" ) func main() { obj := map[string]interface{}{"foo": "bar", "num": 42} f := colorjson.NewFormatter() f.Indent = 2 s, _ := f.Marshal(obj) fmt.Println(string(s)) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.0.0-20200706003622-8a50f05110d2latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
9 hits · last 30 days
node
8
OpenAI (training)
1
Resources
tylerbrock-colorjson — go get tylerbrock-colorjson · libregistry