mirror of
https://github.com/helix-editor/helix
synced 2026-08-08 03:34:14 +02:00
* feat(runtime/queries/go): public functions and methods Same as https://github.com/helix-editor/helix/pull/15879 but for Go. Add dedicated scope for public functions/methods. * feat(book): document new 'public' scope for functions/methods * chore: fixups
13 lines
340 B
Go
13 lines
340 B
Go
package main
|
|
// ^ @namespace
|
|
type Point struct { X int }
|
|
// ^ @type.definition
|
|
// ^ @variable.other.member
|
|
// ^ @type.builtin
|
|
func (p Point) Dist(count int) bool {
|
|
// ^ @function.method.public
|
|
// ^ @variable.parameter
|
|
return helper(count)
|
|
// ^ @function
|
|
}
|