json2go
-------
json2go to go provides a library and cli tool for
convening json strings to go struct definitions
t := json2go. NewTransformer()
typedef, _ := t.Transform(jsonStr, "TypeName")
cli interface:
go install olexsmir.xyz/json2go/cmd/json2go@latest
echo "{...}" | json2go
json2go "{...}"
| name | last commit | last update |
|---|---|---|
| .github/ | chore: setup goreleaser | 6 months ago 2025-11-27 15:00:41 EET |
| cmd/ | implement the cli | 6 months ago 2025-11-26 22:31:35 EET |
| .goreleaser.yaml | chore: setup goreleaser | 6 months ago 2025-11-27 15:00:41 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 | init | 6 months ago 2025-11-26 19:49:04 EET |