file

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2017 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LocatorIncreaseItems   = 1
	LocatorIncreaseMatches = 2
	LocatorFinish          = 3
	LocatorIncreaseErrors  = 4
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Locator

type Locator struct {
	designpattern.Observable
	Src         pattern.SourcePattern
	SourceFiles []string
}

func NewLocator

func NewLocator(pattern *pattern.SourcePattern) *Locator

func (*Locator) Find

func (t *Locator) Find(matcher *matcher.CompositeMatcher)

type LocatorCache

type LocatorCache struct {
	Fs afero.Fs

	Items []string
	// contains filtered or unexported fields
}

func NewLocatorCache

func NewLocatorCache(cacheFile string) *LocatorCache

func (*LocatorCache) Load

func (i *LocatorCache) Load() error

func (*LocatorCache) Save

func (i *LocatorCache) Save() error

type Path

type Path struct {
	fmt.Stringer
	// contains filtered or unexported fields
}

func NewPath

func NewPath(path string) *Path

func (*Path) IsAbs

func (path *Path) IsAbs() bool

func (*Path) IsDir

func (path *Path) IsDir() bool

func (*Path) IsFile

func (path *Path) IsFile() bool

func (*Path) String

func (path *Path) String() string

type TreeNode

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

func NewTreeNode

func NewTreeNode(basePath string) *TreeNode

func (*TreeNode) Integrate

func (t *TreeNode) Integrate(path string) error

func (*TreeNode) List

func (t *TreeNode) List(path string) []string

type WalkObserver

type WalkObserver struct {
	designpattern.ObserverInterface

	Interval int64
	// contains filtered or unexported fields
}

func NewWalkObserver

func NewWalkObserver(handle func(format string, a ...interface{}) (int, error)) *WalkObserver

func (*WalkObserver) Notify

func (ph *WalkObserver) Notify(a ...interface{})

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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