{"provider_url":"https://hatena.blog","description":"\u3053\u308c\u3092\u3084\u308b A Tour of Go \u578b\u306b\u30e1\u30bd\u30c3\u30c9\u3092\u5b9a\u7fa9 func\u3068\u95a2\u6570\u540d\u306e\u9593\u306breceiver\u3092\u5b9a\u7fa9\u3059\u308b\u3053\u3068\u3067\u578b\u306b\u30e1\u30bd\u30c3\u30c9\u3092\u5b9a\u7fa9\u3092\u3067\u304d\u308b\u3002 \u30e1\u30bd\u30c3\u30c9\u306freceiver\u3092\u6301\u3063\u305f\u95a2\u6570\u306e\u3053\u3068\u3067\u3042\u308b\u3002 package main import ( \"fmt\" ) func (test Test) Double() int { return test.X * test.X } type Test struct { X int } func main() { test := Test{2} fmt.Println(test.double()) } struct\u3067\u306a\u3044\u578b\u306b\u3082\u5b9a\u7fa9\u3067\u304d\u308b\u3002 package ma\u2026","published":"2018-08-20 03:04:56","width":"100%","image_url":null,"categories":["Golang"],"url":"https://inabajunmr.hatenablog.com/entry/2018/08/20/030456","height":"190","author_name":"inabajunmr","title":"A Tour of Go\u3092\u3084\u308b\u305e\uff08Methods and interfaces\uff09","blog_title":"\u30c1\u30e7\u30ad\u30c1\u30e7\u30ad\u304b\u306b\u3055\u3093","type":"rich","blog_url":"https://inabajunmr.hatenablog.com/","author_url":"https://blog.hatena.ne.jp/inabajunmr/","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Finabajunmr.hatenablog.com%2Fentry%2F2018%2F08%2F20%2F030456\" title=\"A Tour of Go\u3092\u3084\u308b\u305e\uff08Methods and interfaces\uff09 - \u30c1\u30e7\u30ad\u30c1\u30e7\u30ad\u304b\u306b\u3055\u3093\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","version":"1.0","provider_name":"Hatena Blog"}