Skip to content

Interfaces that embed imported interfaces break impl #30

@lanzafame

Description

@lanzafame

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{}
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions