x/tools/gopls: show hex/binary literal with which a const was declared on mouse over #47453
Labels
FeatureRequest
gopls
Issues related to the Go language server, gopls.
help wanted
Tools
This label describes issues relating to any tools in the x/tools repository.
Milestone
What did you do?
Mouse over a hex/binary notation integer
What did you expect to see?
The literal used to declare the
const
. Usually when one declares a const in hex, binary or octal representation it carries with it a significance, to aid the reader of the code. If we wrote programs for machinesgofmt
would convert these literals to decimals or whatever the computer like.With the philosophy out of the way, I expected to see:
const hex untyped int = 0xe34e (58190)
const bin untyped int = 0b10101 (21)
.What did you see instead?
The usual
gopls
help string ofconst hex untyped int = 58190
const bin untyped int = 21
.The text was updated successfully, but these errors were encountered: