{"url":"https://y-ni-shi.hatenablog.com/entry/2020/02/04/235143","author_url":"https://blog.hatena.ne.jp/y-ni-shi/","description":"\u30c6\u30b9\u30c8\u6642\u306b\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8\u306e\u30d0\u30ea\u30c7\u30fc\u30b7\u30e7\u30f3 \u3053\u3046\u3044\u3046\u30b1\u30fc\u30b9\u306f\u3088\u304f\u3042\u308b\u3068\u601d\u3044\u307e\u3059\u304c\u3002 userDB\u306b\u5bfe\u3057\u3066Find\u51e6\u7406\u3092\u884c\u3063\u305f\u969b\u306b\u30a8\u30e9\u30fc\u306e\u30c1\u30a7\u30c3\u30af\u3092\u884c\u3044\u305f\u3044\u30b1\u30fc\u30b9\u3002 _, err := user.FindUser(user) if err.Error() != \"user ID is invalid\" { t.Errorf(\"Error message is invalid: %v\", err) } \u3053\u306e\u3088\u3046\u306bError()\u3067\u30e1\u30c3\u30bb\u30fc\u30b8\u304c\u53d6\u308c\u308b\u3088\u3046\u3067\u3059\u3002 \u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8\u306econst\u5316 \u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8\u306f\u5909\u308f\u308a\u3084\u3059\u3044\u306e\u3067\u3001\u30c6\u30b9\u30c8\u304c\u58ca\u308c\u3084\u3059\u3044\u3067\u3059\u3002 \u306a\u306e\u3067\u3001\u305d\u308c\u3092const\u5024\u3068\u3057\u3066\u516c\u958b\u3057\u3066\u304a\u304f\u30b1\u30fc\u2026","published":"2020-02-04 23:51:43","provider_url":"https://hatena.blog","width":"100%","provider_name":"Hatena Blog","image_url":null,"title":"Go\u306e\u30a8\u30e9\u30fc\u306e\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u53d6\u5f97\u3059\u308b","height":"190","version":"1.0","categories":["Go"],"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fy-ni-shi.hatenablog.com%2Fentry%2F2020%2F02%2F04%2F235143\" title=\"Go\u306e\u30a8\u30e9\u30fc\u306e\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u53d6\u5f97\u3059\u308b - yasu&#39;s blog\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","blog_url":"https://y-ni-shi.hatenablog.com/","blog_title":"yasu's blog","author_name":"y-ni-shi","type":"rich"}