New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
x/tools/cmd/godoc: Minor inconsistency when representing structures with unexported identifiers. #6713
Comments
Attaching a screenshot. Attachments:
|
Commit 7cd6cae is related to this issue. While stated as a cleanup in the commit message, depending on the point of view, the change may be considered a hack to work around the GoDoc presentation issue related to unexported identifiers. Just wanted to mention it in the relevant issue, as it may affect other commits in the future. |
As rendered on https://tip.golang.org/pkg/compress/flate/, there is an extra new-line because of the unexported constants in the same block. <<< const ( NoCompression = 0 BestSpeed = 1 BestCompression = 9 DefaultCompression = -1 HuffmanOnly = -2 // Disables match search and only does Huffman entropy reduction. ) >>> Instead, seperate the exported compression level constants into its own const block. This is both more readable and also fixes the issue. Change-Id: I60b7966c83fb53356c02e4640d05f55a3bee35b7 Reviewed-on: https://go-review.googlesource.com/23557 Reviewed-by: Ian Lance Taylor <iant@golang.org> Run-TryBot: Ian Lance Taylor <iant@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org>
Close the issue for now as it has remained inactive for more than 6 months. Anyone with more insight into the current status may re-open the issue or add a comment about the current progress. |
The text was updated successfully, but these errors were encountered: