{"author_name":"utgwkk","title":"reflect\u30d1\u30c3\u30b1\u30fc\u30b8\u3067struct\u306eunexported\u306a\u30d5\u30a3\u30fc\u30eb\u30c9\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b\u30a4\u30c7\u30a3\u30aa\u30e0\u306e\u6b63\u5f53\u6027\u3092 (\u4e00\u90e8) \u78ba\u304b\u3081\u308b","published":"2024-04-24 23:32:08","provider_name":"Hatena Blog","url":"https://blog.utgw.net/entry/2024/04/24/233208","provider_url":"https://hatena.blog","author_url":"https://blog.hatena.ne.jp/utgwkk/","blog_title":"\u79c1\u304c\u6b4c\u5ddd\u3067\u3059","height":"190","version":"1.0","description":"\u751f\u304d\u3066\u308b\u3068\u3044\u308d\u3044\u308d\u306a\u3053\u3068\u304c\u3042\u308a\u3001\u30ea\u30d5\u30ec\u30af\u30b7\u30e7\u30f3\u3067struct\u306eunexported\u306a\u30d5\u30a3\u30fc\u30eb\u30c9\u306b\u5024\u3092\u66f8\u304d\u8fbc\u307f\u305f\u304f\u3066\u8abf\u3079\u3066\u3044\u305f\u3089\u3001\u4ee5\u4e0b\u306eStackoverflow\u306e\u56de\u7b54\u304c\u898b\u3064\u304b\u3063\u305f\u3002 stackoverflow.com \u4ee5\u4e0b\u306e\u3088\u3046\u306a\u30a4\u30c7\u30a3\u30aa\u30e0\u3067struct\u306eunexported\u306a\u30d5\u30a3\u30fc\u30eb\u30c9\u306b\u30a2\u30af\u30bb\u30b9\u3067\u304d\u308b*1\u3002 type S struct { a int b int } s := S{} rv := reflect.ValueOf(&s).Elem() for i := 0; i < rv.NumField(); i++ { field := rv.Field(i) field = reflec\u2026","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.utgw.net%2Fentry%2F2024%2F04%2F24%2F233208\" title=\"reflect\u30d1\u30c3\u30b1\u30fc\u30b8\u3067struct\u306eunexported\u306a\u30d5\u30a3\u30fc\u30eb\u30c9\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b\u30a4\u30c7\u30a3\u30aa\u30e0\u306e\u6b63\u5f53\u6027\u3092 (\u4e00\u90e8) \u78ba\u304b\u3081\u308b - \u79c1\u304c\u6b4c\u5ddd\u3067\u3059\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","categories":["\u6280\u8853","Go"],"image_url":null,"type":"rich","blog_url":"https://blog.utgw.net/","width":"100%"}