{"width":"100%","type":"rich","image_url":null,"title":"struct\u306e\u95a2\u6570\u30d7\u30ed\u30d1\u30c6\u30a3\u3068\u30e1\u30bd\u30c3\u30c9\u306e\u6319\u52d5","version":"1.0","description":"package main import \"fmt\" type OpFunc func(int, int) int type Operation struct { // associate\u3055\u308c\u3066\u3044\u306a\u3044\u306e\u3067Operation\u306e\u30d7\u30ed\u30d1\u30c6\u30a3\u30fb\u30e1\u30bd\u30c3\u30c9\u3078\u306e\u30a2\u30af\u30bb\u30b9\u306f\u51fa\u6765\u306a\u3044\u3002 Do1 OpFunc // \u4ee5\u4e0b\u30b3\u30e1\u30f3\u30c8\u3092\u5916\u3059\u3068 \"type Operation has both field and method named Do2\" //Do2 OpFunc } func (op Operation) Do2(a, b int) int { return op.Do1(a, b) } func main()\u2026","provider_name":"Hatena Blog","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fshin.hateblo.jp%2Fentry%2F2015%2F01%2F05%2F020824\" title=\"struct\u306e\u95a2\u6570\u30d7\u30ed\u30d1\u30c6\u30a3\u3068\u30e1\u30bd\u30c3\u30c9\u306e\u6319\u52d5 - $ cat /var/log/shin\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","categories":["Programming","go","golang"],"author_url":"https://blog.hatena.ne.jp/s-shin/","blog_title":"$ cat /var/log/shin","blog_url":"https://shin.hateblo.jp/","provider_url":"https://hatena.blog","url":"https://shin.hateblo.jp/entry/2015/01/05/020824","author_name":"s-shin","height":"190","published":"2015-01-05 02:08:24"}