Documentation ¶
Index ¶
- Variables
- func FindPackage(filename string) (*packages.Package, error)
- func Load(opt common.Options, patterns []string) error
- func LoadOverlay(fileName string, code []byte) error
- func ParserFile(filename string, src any) (*ast.File, error)
- func Reset()
- func TryGoModTidy(opt common.Options, fs []string)
- func TypeOf(req *common.Request, e ast.Expr) (types.Type, error)
- type Program
Constants ¶
This section is empty.
Variables ¶
View Source
var Default = &Program{ FSet: token.NewFileSet(), }
Default 默认的应用
Functions ¶
func FindPackage ¶
FindPackage 查找 pkg 信息
func TryGoModTidy ¶ added in v0.4.6
TryGoModTidy 更新 go.sum 文件 若不执行 go mod tidy 可能由于 go.sum 文件未更新,导致 go list 命令失败 进而导致 pkg 不能正常的 load
Types ¶
Click to show internal directories.
Click to hide internal directories.