1 files changed,
4 insertions(+),
4 deletions(-)
Author:
Oleksandr Smirnov
olexsmir@gmail.com
Committed at:
2025-11-27 15:09:19 +0200
Change ID:
qxvlopluxmuouktttvlrytyrkzsyswxl
Parent:
bb3a1d4
M
readme.txt
@@ -2,15 +2,15 @@ json2go
------- json2go to go provides a library and cli tool for -convening json strings to go struct definitions +converting json strings to go struct definitions t := json2go. NewTransformer() - typedef, _ := t.Transform(jsonStr, "TypeName") + typedef, err := t.Transform(`{"json": true}`, "TypeName") cli interface: go install olexsmir.xyz/json2go/cmd/json2go@latest - echo "{...}" | json2go - json2go "{...}" + echo '{"id": 1, "name": "Alice"}' | json2go + json2go '{"id": 1, "name": "Alice"}'