61
GitHub - skanehira/gjo: Small utility to create JSON objects
source link: https://github.com/skanehira/gjo
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
README.md
gjo
Small utility to create JSON objects.
This was inspired by jpmens/jo.
Requirements
- Go 1.1.14~
- Git
Installtion
$ git clone https://github.com/skanehira/gjo.git
$ cd gjo
$ GO111MODULE=on go install
Usage
$ gjo -p status=$(gjo name=gorilla age=26 lang=$(gjo -a Go Java PHP)) { "status": { "age": 26, "lang": [ "Go", "Java", "PHP" ], "name": "gorilla" } } $ gjo -h Usage of gjo: -a creates an array of words -p pretty-prints -v show version
Author
gorilla0513
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK