json2go
-------
json2go to go provides a library and cli tool for
converting json strings to go struct definitions
t := json2go. NewTransformer()
typedef, err := t.Transform(`{"json": true}`, "TypeName")
cli interface:
go install olexsmir.xyz/json2go/cmd/json2go@latest
echo '{"id": 1, "name": "Alice"}' | json2go
json2go '{"id": 1, "name": "Alice"}'
| name | last commit | last update |
|---|---|---|
| .github/ | chore: trigger goreleaser only on releases | 6 months ago 2025-11-27 19:41:36 EET |
| cmd/ | fix: print errors | 6 months ago 2025-11-27 19:37:39 EET |
| .goreleaser.yaml | chore: setup goreleaser | 6 months ago 2025-11-27 15:00:41 EET |
| LICENSE | chore: add license | 6 months ago 2025-11-27 19:46:46 EET |
| go.mod | init | 6 months ago 2025-11-26 19:49:04 EET |
| json2go.go | some polishing | 6 months ago 2025-11-27 14:55:52 EET |
| json2go_internal_test.go | feat: indentation | 6 months ago 2025-11-27 14:55:49 EET |
| json2go_test.go | feat: indentation | 6 months ago 2025-11-27 14:55:49 EET |
| readme.txt | chore: update readme | 6 months ago 2025-11-27 15:09:19 EET |