{"width":"100%","provider_url":"https://hatena.blog","author_name":"imagawa_yakata","blog_title":"\u4eca\u5ddd\u9928","author_url":"https://blog.hatena.ne.jp/imagawa_yakata/","published":"2019-08-22 19:00:00","description":"Go\u306f\u30cc\u30eb\u30dd\u3057\u306a\u3044\u3068\u3044\u3046\u4e8b\u5b9f\u306b\u9a5a\u6115\u3057\u3066\u3057\u307e\u3063\u305f \u3082\u3046\u8a00\u3044\u305f\u3044\u3053\u3068\u306f\u30bf\u30a4\u30c8\u30eb\u304c\u3059\u3079\u3066\u306a\u306e\u3060\u304c\u3001Go\u306fnil\u304b\u3089\u30e1\u30bd\u30c3\u30c9\u3092\u547c\u3093\u3067\u3082nil ponter\u3067\u30d1\u30cb\u30c3\u30af\u306b\u306a\u3063\u305f\u308a\u3057\u306a\u3044\u3002\u4ee5\u4e0b\u306eGo\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u3067main()\u95a2\u6570\u306e\u30ed\u30fc\u30ab\u30eb\u5909\u6570f\u306fnil\u3060\u304c\u3001f.IsNull()\u306a\u3069\u306e\u30e1\u30bd\u30c3\u30c9\u3092\u547c\u3093\u3067\u3082\u30d1\u30cb\u30c3\u30af\u306b\u306a\u3089\u305a\u7d50\u679c\u3092\u8fd4\u3059\u3002 package main import ( \"fmt\" ) type Foo struct { Name string } func (f *Foo) IsNull() bool { return f == nil } func (f *Foo) Hello() string { \u2026","title":"Go\u306fnil\u3092\u30ec\u30b7\u30fc\u30d0\u30fc\u306b\u30e1\u30bd\u30c3\u30c9\u3092\u547c\u3093\u3067\u3082nil pointer\u3067\u843d\u3061\u306a\u3044","url":"https://imagawa.hatenadiary.jp/entry/2019/08/22/190000","provider_name":"Hatena Blog","categories":["Go"],"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fimagawa.hatenadiary.jp%2Fentry%2F2019%2F08%2F22%2F190000\" title=\"Go\u306fnil\u3092\u30ec\u30b7\u30fc\u30d0\u30fc\u306b\u30e1\u30bd\u30c3\u30c9\u3092\u547c\u3093\u3067\u3082nil pointer\u3067\u843d\u3061\u306a\u3044 - \u4eca\u5ddd\u9928\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","image_url":null,"version":"1.0","type":"rich","blog_url":"https://imagawa.hatenadiary.jp/","height":"190"}