blob: 500e6c9a4172d4eba7ed6f6f4c7f196b044c882b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
show declaration of selected identifier
Usage:
gopls [flags] definition [definition-flags] <position>
Example: show the definition of the identifier at syntax at offset 44 in this file (flag.FlagSet):
$ gopls definition internal/lsp/cmd/definition.go:44:47
$ gopls definition internal/lsp/cmd/definition.go:#1270
definition-flags:
-json
emit output in JSON format
-markdown
support markdown in responses
|