doctree icon indicating copy to clipboard operation
doctree copied to clipboard

Go indexer: only parse top-level comment

Open joshuabezaleel opened this issue 2 years ago • 1 comments

Comment(s) that is not written directly above a particular function should be omitted.

Case in point: https://github.com/gorilla/mux/blob/3cf0d013e53d62a96c096366d300c84489c26dd5/mux.go#L406-L410

At doctree: image

At godoc: image

This is just my assumption, feel free to close the issue if this is working as expected 😄

joshuabezaleel avatar May 28 '22 03:05 joshuabezaleel

100% agree, this is a bug! If you're keen to try debugging it, feel free to!

emidoots avatar May 28 '22 04:05 emidoots