https://github.com/mayur-tolexo/j2s
Golang code generator for creating struct from json.
https://github.com/mayur-tolexo/j2s
generate-code go json json2struct struct template
Last synced: about 1 month ago
JSON representation
Golang code generator for creating struct from json.
- Host: GitHub
- URL: https://github.com/mayur-tolexo/j2s
- Owner: mayur-tolexo
- License: mit
- Created: 2019-11-08T09:46:30.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-12-11T12:23:31.000Z (over 6 years ago)
- Last Synced: 2026-04-27T07:34:00.274Z (about 1 month ago)
- Topics: generate-code, go, json, json2struct, struct, template
- Language: Go
- Size: 58.6 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://www.godoc.org/github.com/mayur-tolexo/j2s)
[](https://goreportcard.com/report/github.com/mayur-tolexo/j2s)
[](https://www.codetriage.com/mayur-tolexo/j2s)
[](https://github.com/mayur-tolexo/j2s/releases)
# jsonToStruct
Golang code generator for creating struct from json.
### INSTALLATION
go get github.com/mayur-tolexo/j2s
### Tags:
- -ip=input.json [Input File (default "input.json")]
- -op=bakery.go [Output File (default "output.go")]
- -name=Bakery [Structure Name (default "User")]
- -reuse=1 [if you want to reuse struct having same fields (default 0)]
#### Create Struct from console json.
| Command | Output |
| ------------- |:-------------:|
||  |
#### Create struct from json input file.

| Input | Output |
| ------------- |:-------------:|
| |  |