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
- Host: GitHub
- URL: https://github.com/thimc/jtog
- Owner: thimc
- License: mit
- Created: 2024-12-08T12:56:00.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-12-09T15:25:51.000Z (over 1 year ago)
- Last Synced: 2025-03-31T14:18:26.748Z (about 1 year ago)
- Topics: cli, code-generation, golang, json
- Language: Go
- Homepage:
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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