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"}'
34a739e
— Oleksandr Smirnov
Sun, 07 Dec 2025
2025-12-07 16:48:44 +0200
feat: write errors to stderr
4585e71
— Oleksandr Smirnov
Thu, 27 Nov 2025
2025-11-27 19:46:46 +0200
chore: add license
1a6070b
— Oleksandr Smirnov
Thu, 27 Nov 2025
2025-11-27 19:41:36 +0200
chore: trigger goreleaser only on releases
Clone urls
https://git.olexsmir.xyz/json2go
git@git.olexsmir.xyz:json2go
Mirror status
Last updated 24 minutes ago from: https://github.com/olexsmir/json2go