pkgcache

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DirectoryLoader

type DirectoryLoader interface {
	LoadPackageForFile(path string) (*packages.Package, *ast.File, *token.FileSet, error)
}

DirectoryLoader loads the full package for a given file path. It does a lot of caching internally.

func NewDirectoryLoader

func NewDirectoryLoader() DirectoryLoader

NewDirectoryLoader creates a new directory-based package loader

Jump to

Keyboard shortcuts

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