PretGO

So basic cli for format json,html, yaml and xml!

Screenshots

Example screenshot

Setup

First clone project

git clone https://github.com/muratmirgun/pretgo

And install it

go install

Code Examples

Basic HTML format usage

➜ cat mes.html | pretgo -format="html"

Basic Json format usage

➜ cat mes.json | pretgo -format="json"

Basic XML format usage

➜ cat mes.xml | pretgo -format="xml"

Basic YAML format usage

➜ cat mes.yaml | pretgo -format="yaml"

Or use Dockerfile

# inside project
docker build -t pretgo-local .

Then use it with json

➜ cat mes.json | docker run -i --rm pretgo-local -format="json"

Or html

➜ cat mes.html | docker run -i --rm pretgo-local -format="html"

Or xml format

➜ cat mes.xml | docker run -i --rm pretgo-local -format="xml"

Or yaml format

➜ cat mes.yml | docker run -i --rm pretgo-local -format="yml"

Status

Project is: in progress .

Contact

Created by @muratmirgun - feel free to contact me!

GitHub

https://github.com/muratmirgun/pretgo