goprettyjson

command module
v0.0.0-...-cd72d7b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 16, 2019 License: MIT Imports: 8 Imported by: 0

README

goprettyjson

Simple program which can receive unformatted JSON piped into it and then will format the JSON and write to stdout.

I used this to create an Apple Automator application which gets JSON text from the clipboard and formats the JSON and puts the formatted text back into the clipboard.

Apple Automator Screen Shot

export GOBIN="/Users/richard/Development/source/go/bin"
export PATH="$PATH:$GOBIN"
[ $# -ge 1 -a -f "$1" ] && input="$1" || input="-"
cat $input | goprettyjson

Run go install to install into GOBIN

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
⌂ 换网址