impl
impl copied to clipboard
Interfaces that embed imported interfaces break `impl`
I am attempting to generate the stubs for the Node interface but I get a not an interface: blocks.Block:
import (
blocks "github.com/ipfs/go-block-format"
)
type Node interface {
blocks.Block
Resolver
// snipped for brevity
}
From the blocks package:
// Block provides abstraction for blocks implementations.
type Block interface {
RawData() []byte
Cid() *cid.Cid
String() string
Loggable() map[string]interface{}
}
Is there any fix on this?
Nope, although I would be happy to review a PR.