Skip to content
This repository has been archived by the owner on Jan 16, 2021. It is now read-only.

show large constant strings if the user wants to #261

Closed
minux opened this issue Mar 26, 2015 · 2 comments
Closed

show large constant strings if the user wants to #261

minux opened this issue Mar 26, 2015 · 2 comments

Comments

@minux
Copy link
Member

minux commented Mar 26, 2015

See also golang/go#10257.

http://godoc.org/golang.org/x/tools/refactor/eg

I think even though the big Help const is not shown by default, the user
should still be able to see it. And that will be very useful in this particular
case.

@minux
Copy link
Member Author

minux commented Mar 26, 2015 via email

@dmitshur
Copy link
Contributor

If there is interest in viewing long strings separate from the broken documentation issue, then we should add a link to the string in the source code.

I think that's the way to go.

It can already be done for other identifiers. For example, http://godoc.org/golang.org/x/tools/refactor/eg#WriteAST has a link to the source, https://github.com/golang/tools/blob/master/refactor/eg/eg.go#L282. So it's just a matter of adding support to link const identifiers to the source.

Separately, FWIW, gotools works:

http://gotools.org/golang.org/x/tools/refactor/eg#Help

@adg adg closed this as completed Jun 11, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants