Not sure if this is the best place to ask, but was curious about this result from go doc
.
When I declare multiple variables like so:
package main
var (
A = 1
B = 2
C = 3
D = 4
)
var E = 5
then go doc -short
does not pick up all of A,B,C,D:
var A = 1 ...
var E = 5
I am trying to get a list of all exported symbols from a package. In that case, there are six errors declared with the multiline var
syntax. Three of them are listed with go doc -short
, but the last three are skipped. Is go doc
working as intended?