File tree 1 file changed +22
-1
lines changed 1 file changed +22
-1
lines changed Original file line number Diff line number Diff line change @@ -85,9 +85,30 @@ optimizations to your data structures, or when reading assembly code.
85
85
86
86
TODO: example hover image.
87
87
88
+ ### Hover and definition on doc links
89
+
90
+ Go 1.19 added support for [ links in doc
91
+ comments] ( https://go.dev/doc/comment#links ) , allowing the
92
+ documentation for one symbol to reference another:
93
+
94
+ TODO: turn the code below into a VS Code screenshot of hover.
95
+
96
+ ``` go
97
+ // Logf logs a message formatted in the manner of [fmt.Printf].
98
+ func Logf (format string , args ...any )
99
+ ```
100
+
101
+ Gopls's Hover and Definition operations now treat these links just
102
+ like identifiers, so hovering over one will display information about
103
+ the symbol, and "Go to definition" will navigate to its declaration.
104
+ Thanks to @rogeryk for contributing this feature.
105
+
106
+
88
107
## Bugs fixed
89
108
90
109
## Thank you to our contributors!
91
110
92
111
@guodongli-google for the `unusedwrite` analyzer.
93
- TODO: they're a xoogler; is there a more current GH account?
112
+ TODO: they're a xoogler; is there a more current GH account?
113
+
114
+ @rogeryk
You can’t perform that action at this time.
0 commit comments