You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It's quite useful to be able to see the value of a const/var when godef is used to show hovers. It's currently only shown for consts.
The case for also doing this for variables is that consts in Go don't support any type, if you need some "constant" value that isn't scalar, e.g. a slice, you often see a global variable used instead.
It's quite useful to be able to see the value of a const/var when godef is used to show hovers. It's currently only shown for consts.
The case for also doing this for variables is that consts in Go don't support any type, if you need some "constant" value that isn't scalar, e.g. a slice, you often see a global variable used instead.
Screenshot from VS Code
Example
$ godef -t -f foo.go foo foo.go:5:7 const foo string = "foo" $ godef -t -f foo.go baz foo.go:8:5 baz string
Sample Code
Originally reported at: microsoft/vscode-go#2146
cc @ramya-rao-a
The text was updated successfully, but these errors were encountered: