Help us shape the future of Go! Take the 2026 Go Developer Survey

utils

package
v0.3.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 23, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultLSPInitTime = time.Second * 60

Functions

func GetLSPClient

func GetLSPClient(root string) *lsp.LSPClient

func GetRawSymbol added in v0.2.3

func GetRawSymbol(root, file, mod, name string, receiver string, caseInsensitive bool) *lsp.DocumentSymbol

查找符号对应的代码 root: 项目根目录 file: 文件路径 mod: 命名空间,空表示本文件根 name: 符号名 receiver: method接收者,为空表示不是method

func GetSymbol

func GetSymbol(root, file, mod, name string, receiver string, caseInsensitive bool) string

查找符号对应的代码 root: 项目根目录 file: 文件路径 mod: 命名空间,空表示本文件根 name: 符号名 receiver: method接收者,为空表示不是method

func GetSymbolContentAndLocation added in v0.2.3

func GetSymbolContentAndLocation(root, file, mod, name string, receiver string, caseInsensitive bool) (string, [2]int)

查找符号对应的源码以及文件行号 root: 项目根目录 file: 文件路径 mod: 命名空间,空表示本文件根 name: 符号名 receiver: method接收者,为空表示不是method

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL