怎么上手?比如,我需要在 Go Mode 中查看 Go 文档,可以从命令行获得文档
$ go doc -src os.Open
package os // import "os"
// Open opens the named file for reading. If successful, methods on
// the returned file can be used for reading; the associated file
// descriptor has mode O_RDONLY.
// If there is an error, it will be of type *PathError.
func Open(name string) (*File, error) {
return OpenFile(name, O_RDONLY, 0)
}
假设我已经把这个命令封装成了函数。然后 ghelp-register-backend 怎么用?下面的 nil 是什么意思?
(ghelp-register-backend 'python-mode
nil
#'ghelp-eglot--describe-symbol)