{"provider_url":"https://hatena.blog","blog_url":"https://pod.hatenablog.com/","categories":["golang","reflect","memo"],"description":"\u30c6\u30b9\u30c8\u306a\u3069\u306ehelper\u3092\u4f5c\u308b\u3068\u304d\u306b\u3001\u7279\u5b9a\u306estruct\u306eunexported field\u306b\u30a2\u30af\u30bb\u30b9\u3057\u305f\u304f\u306a\u308b\u3053\u3068\u304c\u3042\u308b\u3002 \u305d\u306e\u65b9\u6cd5\u306e\u30e1\u30e2\uff08\u3042\u3068\u3067\u307e\u3058\u3081\u306b\u66f8\u304f\u304b\u3082\u3057\u308c\u306a\u3044\u66f8\u304b\u306a\u3044\u304b\u3082\u3057\u308c\u306a\u3044\uff09\u3002 with exported field \u305d\u306e\u524d\u306breflect\u7d4c\u7531\u3067\u306e\u30a2\u30af\u30bb\u30b9\u3067\u8003\u3048\u3066\u307f\u308b\u3002\u4ee5\u4e0b\u306e\u69d8\u306astruct\u3067\u3068\u308a\u3042\u3048\u305aexported field\u306b\u30a2\u30af\u30bb\u30b9\u3057\u3066\u307f\u308b\u3002 type S struct { Exported int unexported int } reflect.Value\u306eFieldByName()\u304c\u4f7f\u3048\u308b\u3002\u4eca\u56de\u306fint\u3067\u3084\u3063\u305f\u304c\u3001\u901a\u5e38\u5229\u7528\u3059\u308b\u3068\u304d\u306f\u4efb\u610f\u306estruct\u3068\u3044\u3046\u3053\u3068\u3092\u2026","blog_title":"podhmo's diary","url":"https://pod.hatenablog.com/entry/2020/08/06/234049","version":"1.0","type":"rich","width":"100%","image_url":null,"title":"go\u3067reflect\u3092\u4f7f\u3063\u3066unexported field\u306e\u5024\u3092\u898b\u308b","published":"2020-08-06 23:40:49","author_name":"podhmo","provider_name":"Hatena Blog","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fpod.hatenablog.com%2Fentry%2F2020%2F08%2F06%2F234049\" title=\"go\u3067reflect\u3092\u4f7f\u3063\u3066unexported field\u306e\u5024\u3092\u898b\u308b - podhmo&#39;s diary\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","height":"190","author_url":"https://blog.hatena.ne.jp/podhmo/"}