Skip to content

cmd/godoc: show types that implement an interface #2751

@mikioh

Description

@mikioh
What steps will reproduce the problem?
1. godoc io net --type interface
2.
3.

What is the expected output? What do you see instead?
godoc shows interface type like following:

type io.Closer interface {
    Close() error
}
    Closer is the interface that wraps the basic Close method.

type io.Reader interface {
    Read(p []byte) (n int, err error)
}
    Reader is the interface that wraps the basic Read method.

type io.Writer interface {
    Write(p []byte) (n int, err error)
}
    Writer is the interface that wraps the basic Write method.

type net.Addr interface {
    :
}
    Addr represents a network end point address.

Please use labels and text to provide additional information.
I think it would be nice, be helpful for writing Go program 
if godoc could show cross-cutting catalogue for of interface 
type.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions