Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
go/doc: confusing types displayed for mixed exported/unexported consts #9431
const ( a, _, c = T, iota, int D, E, f J, k = iota, T L, M )
It is not clear from the output what the type of
I came across this while working on a follow-up to #5397. This is an edge case, and I've not seen it in the real world. It is not clear what the correct thing to do here is; probably we should just ignore it.
One could probably come up with some heuristics to make this work, but it's not clear it's worth the effort.
The correct approach would be to use go/types to compute the correct export information, combine that with the comments present in the source, and produce a synthetic AST from that.
I would ignore this.