{"blog_title":"so what","version":"1.0","blog_url":"https://so-wh.at/","url":"https://so-wh.at/entry/2026/01/02/224343","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fso-wh.at%2Fentry%2F2026%2F01%2F02%2F224343\" title=\"json2go\u306e\u4f5c\u6210\u3068\u3044\u304f\u3064\u304b\u306e\u5b66\u3073 - so what\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","description":"\u5143\u65e6\u306e\u624b\u9699\u306a\u6642\u9593\u306bjson2go\u3068\u3044\u3046JSON\u3092Go\u306e\u69cb\u9020\u4f53\u306b\u5909\u63db\u3059\u308b\u30c4\u30fc\u30eb\u3092\u66f8\u3044\u305f\u3002 github.com $ echo '{\"foo\":\"bar\",\"zoo\":[1,2,3],\"baz\":[{\"hoge\":10},{\"fuga\":20}]}' | json2go struct { Baz []struct { Fuga int `json:\"fuga\"` Hoge int `json:\"hoge\"` } `json:\"baz\"` Foo string `json:\"foo\"` Zoo []int `json:\"zoo\"` } \u30aa\u30f3\u30e9\u30a4\u30f3\u3067\u540c\u69d8\u306e\u30b5\u30fc\u30d3\u30b9\u3092\u63d0\u4f9b\u3059\u308b\u30b5\u30a4\u30c8\u306f\u3059\u3067\u306b\u3044\u304f\u3064\u304b\u3042\u308b\u304c\u2026","author_url":"https://blog.hatena.ne.jp/winebarrel/","published":"2026-01-02 22:43:43","type":"rich","provider_name":"Hatena Blog","title":"json2go\u306e\u4f5c\u6210\u3068\u3044\u304f\u3064\u304b\u306e\u5b66\u3073","image_url":null,"width":"100%","author_name":"winebarrel","categories":[],"height":"190","provider_url":"https://hatena.blog"}