Go tool for working with interface
go get github.com/vkd/goiface
- implement interface -
goiface impl <receiver> <interface>
$ goiface impl github.com/vkd/goiface/testdata.MyType github.com/vkd/goiface/testdata.MyIface
// Iface ...
func (m MyType) Iface() *MyType {
panic("not implemented")
}
// IfaceCustom ...
func (m MyType) IfaceCustom(arg ...int) (*MyType, error) {
panic("not implemented")
}