cache

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2020 License: MIT Imports: 14 Imported by: 0

Documentation

Index

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 NewCache

func NewCache(log *zap.Logger, root string) (*Cache, error)

func (*Cache) Files

func (c *Cache) Files() map[string]bool

func (*Cache) FilesInPkg

func (c *Cache) FilesInPkg(pkg string) (map[string]bool, error)

func (*Cache) ModulePath

func (c *Cache) ModulePath() string

func (*Cache) Pkgs

func (c *Cache) Pkgs() map[string]bool

func (*Cache) ReadFile

func (c *Cache) ReadFile(path string) ([]byte, error)

func (*Cache) ReadGoFile

func (c *Cache) ReadGoFile(path string, loadFlags parser.Mode) (*ast.File, *token.FileSet, error)

func (*Cache) Root

func (c *Cache) Root() string

type ModuleInfo

type ModuleInfo struct {
	Dir  string `json:"dir"`
	Path string `json:"path"`
}

Jump to

Keyboard shortcuts

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