uncache

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: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ModuleInfo

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

type Uncache

type Uncache struct {
	// contains filtered or unexported fields
}

func NewUncache

func NewUncache(log *zap.Logger, root string) (*Uncache, error)

func (*Uncache) Files

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

func (*Uncache) FilesInPkg

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

func (Uncache) ModulePath

func (c Uncache) ModulePath() string

func (*Uncache) Pkgs

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

func (*Uncache) ReadFile

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

func (*Uncache) ReadGoFile

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

func (Uncache) Root

func (c Uncache) Root() string

Jump to

Keyboard shortcuts

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