Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
x/tools/cmd/godoc: Minor inconsistency when representing structures with unexported identifiers. #6713
What steps will reproduce the problem? If possible, include a link to a program on play.golang.org. play.golang.org: http://play.golang.org/p/diJ8fD6QI1 godoc.org: http://godoc.org/github.com/mewmew/playground/p2 1. The following example package contains four types (T1, T2, T3, T4): 2. The visual representation of T3 and T4 differs. What is the expected output? Consistent visual representation of T3 and T4. What do you see instead? A whitespace is inserted before the doc comment of the exported member in T4. Which compiler are you using (5g, 6g, 8g, gccgo)? 6g Which operating system are you using? Arch Linux Which version are you using? (run 'go version') go version devel +dc2762a9130d Mon Nov 04 17:41:08 2013 +1100 linux/amd64 go.tools: changeset 483:1c0539e4d906 Please provide any additional information below. As mentioned in the summary this is indeed a minor inconsistency and there may exist a good reason for it. Either way, wanted to report it so we can discuss it.
changed the title
cmd/godoc: Minor inconsistency when representing structures with unexported identifiers.
Apr 14, 2015
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.