An open API service indexing awesome lists of open source software.

https://github.com/thimc/jtog

command line tool that converts json to go source code
https://github.com/thimc/jtog

cli code-generation golang json

Last synced: about 2 months ago
JSON representation

command line tool that converts json to go source code

Awesome Lists containing this project

README

          

# jtog

*J*SON *to* *G*o is a command line tool that converts JSON to valid Go
source code.

## Usage

Usage: jtog [ -l=bool ] [ -o=bool ] [ file ... ]
If no file path(s) are specified as flags then data from standard input is assumed.

-l inline type defintions (default true)
-o appends "omitempty" to the json tag

### Examples

jtog file1.json file2.json ...

or

jtog