Skip to content

x/tools/cmd/godoc: Minor inconsistency when representing structures with unexported identifiers. #6713

@mewmew

Description

@mewmew
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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions