go-interface-stubs-generator README
Help gophers to auto generate interface implimentaion stubs
Use code comments like blow:
// Foo @impl io.Closer
// Foo @impl io.Reader
type Foo ...
Then hover on @impl keyword, then click Quick fix... to generate code like this:
// FooImpl @impl io.Reader static check
var _ io.Reader = new(FooImpl)
func (f *FooImpl) Read(p []byte) (n int, err error) {
panic("not implemented") // TODO: Implement
}
// FooImpl @impl io.Reader static check
var _ io.Reader = new(FooImpl)
func (f *FooImpl) Read(p []byte) (n int, err error) {
panic("not implemented") // TODO: Implement
}
| |