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 | 10 months ago 2025-11-27 15:00:41 +0200 |
| cmd/ | implement the cli | 10 months ago 2025-11-26 22:31:35 +0200 |
| .goreleaser.yaml | chore: setup goreleaser | 10 months ago 2025-11-27 15:00:41 +0200 |
| go.mod | init | 10 months ago 2025-11-26 19:49:04 +0200 |
| json2go.go | some polishing | 10 months ago 2025-11-27 14:55:52 +0200 |
| json2go_internal_test.go | feat: indentation | 10 months ago 2025-11-27 14:55:49 +0200 |
| json2go_test.go | feat: indentation | 10 months ago 2025-11-27 14:55:49 +0200 |
| readme.txt | init | 10 months ago 2025-11-26 19:49:04 +0200 |