Skip to content

vkd/goiface

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

goiface

Go tool for working with interface

Install

go get github.com/vkd/goiface

Tools

  • implement interface - goiface impl <receiver> <interface>

Using

$ 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")
}

About

Go tool for working with interface

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages