Documentation ¶ Index ¶ type Cache func LoadFromPackages(pkgs []*packages.Package, log logutils.Log) (*Cache, error) func NewCache(log logutils.Log) *Cache func (c Cache) Get(filename string) *File func (c Cache) GetAllValidFiles() []*File func (c Cache) GetOrParse(filename string, fset *token.FileSet) *File type File Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Cache ¶ type Cache struct { // contains filtered or unexported fields } func LoadFromPackages ¶ added in v1.11.1 func LoadFromPackages(pkgs []*packages.Package, log logutils.Log) (*Cache, error) func NewCache ¶ added in v1.6.1 func NewCache(log logutils.Log) *Cache func (Cache) Get ¶ added in v1.6.1 func (c Cache) Get(filename string) *File func (Cache) GetAllValidFiles ¶ func (c Cache) GetAllValidFiles() []*File func (Cache) GetOrParse ¶ added in v1.6.1 func (c Cache) GetOrParse(filename string, fset *token.FileSet) *File type File ¶ type File struct { F *ast.File Fset *token.FileSet Name string Err error } Source Files ¶ View all Source files astcache.go Click to show internal directories. Click to hide internal directories.