{"author_name":"oinume","url":"https://oinume.hatenablog.com/entry/satisfying-a-large-interface-quickly-in-go","blog_url":"https://oinume.hatenablog.com/","image_url":"https://blog.golang.org/go-brand/logos.jpg","version":"1.0","title":"Satisfying a large interface quickly in Go","categories":["Go","in English"],"description":"Sometimes it's painful to safisfy a large interface in Go. Here is a simple answer for this, just embed interface on struct like bellow: package main import ( \"fmt\" ) type Foo interface { MethodA() MethodB() MethodC() MethodD() } type FooImpl struct { Foo } func (fi *FooImpl) MethodA() { fmt.Println\u2026","published":"2018-11-12 09:00:00","author_url":"https://blog.hatena.ne.jp/oinume/","type":"rich","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Foinume.hatenablog.com%2Fentry%2Fsatisfying-a-large-interface-quickly-in-go\" title=\"Satisfying a large interface quickly in Go - oinume journal\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","provider_name":"Hatena Blog","provider_url":"https://hatena.blog","width":"100%","blog_title":"oinume journal","height":"190"}