Closed Konstantin8105 closed 4 years ago
Taken out of context, this does seem odd, but the rest of the documentation clarifies what symbols are printed. In particular, it says right up top, "a const", not all consts, and "the item" not all items.
I think the real problem here is to discover a better way to show all the constants in a declaration. The "-short" flag is surely not it, but it's not clear what, if anything, should be changed.
Excuse me, agree. | Command | Functions | Structs | Struct methods | Constants |
---|---|---|---|---|---|
go doc -all math |
yes | yes | yes | yes | |
go doc math |
yes | yes | none | short | |
go doc -short math |
yes | yes | none | short |
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?
Run
go doc
with flag-short
and in according to documentation:Representation in one-line, but not without full list of constants.
What did you expect to see?
What did you see instead?