Considering the following snippet:
package example
type Foo interface {
}
var Alpha = "alpha"
var Beta string = "beta"
var Gamma Foo = "gamma"
Both godoc
(-http=:6060
) and go doc
ignore Gamma
entirely, whilst Alpha
and Beta
are - of course - shown in the output. This behavior seems to be reproducible with any exported variable that is declared to be an interface type.
Why?