Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

x/tools/cmd/godoc: public methods of unexported embedded interfaces not shown. #16043

Closed
cznic opened this issue Jun 12, 2016 · 4 comments

Comments

Projects
None yet
6 participants
@cznic
Copy link
Contributor

commented Jun 12, 2016

Please answer these questions before submitting your issue. Thanks!

  1. What version of Go are you using (go version)?

tip @ 3c6b668

  1. What operating system and processor architecture are you using (go env)?

N/A

  1. What did you do?

If possible, provide a recipe for reproducing the error.

jnml@4670:~/src/tmp$ echo $GOPATH 
/home/jnml
jnml@4670:~/src/tmp$ cat tmp.go 
package foo

type t interface {
    Public()
}

type T interface {
    t
}
jnml@4670:~/src/tmp$ godoc tmp T
  1. What did you expect to see?
use 'godoc cmd/tmp' for documentation on the tmp command 

type T interface {
    Public()
    // contains filtered or unexported methods
}
  1. What did you see instead?
use 'godoc cmd/tmp' for documentation on the tmp command 

type T interface {
    // contains filtered or unexported methods
}

FTR: Importing the package and calling method Public on an instance of foo.T compiles just fine.

@ianlancetaylor

This comment has been minimized.

Copy link
Contributor

commented Jun 12, 2016

Same as #2971?

@ianlancetaylor ianlancetaylor changed the title tools/cmd/godoc: Public methods of unexported embedded interfaces not shown. x/tools/cmd/godoc: public methods of unexported embedded interfaces not shown. Jun 12, 2016

@ianlancetaylor

This comment has been minimized.

Copy link
Contributor

commented Jun 12, 2016

@jimmyfrasche

This comment has been minimized.

Copy link
Member

commented Jun 12, 2016

related #6600 #10593 #7823 (contains more related issues, some fixed)

@griesemer

This comment has been minimized.

Copy link
Contributor

commented Jul 7, 2016

@ianlancetaylor Yes, this is a duplicate of #2971. Closing.

@griesemer griesemer closed this Jul 7, 2016

@golang golang locked and limited conversation to collaborators Jul 7, 2017

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
You can’t perform that action at this time.