You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (go env)?
go env Output
$ go env
GOARCH="amd64"
GOOS="darwin"
What did you do?
I created two structs, one private, one public. I attached a public method to the private struct and then embedded the private struct in the public struct. I can access that public method from elsewhere, but cannot view it in Godoc. Code below:
type min interface {
Var()
}
type Other interface {
Something()
}
type Max struct {
Other
min
}
What did you expect to see?
I expect to see that this in an available method on the public struct.
What did you see instead?
The text was updated successfully, but these errors were encountered:
gopherbot
added
the
Tools
This label describes issues relating to any tools in the x/tools repository.
label
May 3, 2023
cagedmantis
changed the title
x/tools/cmd/godoc Public fields of a private embedded struct do not appear in GoDoc
x/tools/cmd/godoc: public fields of a private embedded struct do not appear in GoDoc
May 3, 2023
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
I created two structs, one private, one public. I attached a public method to the private struct and then embedded the private struct in the public struct. I can access that public method from elsewhere, but cannot view it in Godoc. Code below:
What did you expect to see?
What did you see instead?
The text was updated successfully, but these errors were encountered: