all repos

json2go @ bb3a1d4

convert json to go type annotations

json2go/readme.txt(view raw)

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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 "{...}"