files

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2017 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Watch

func Watch(path string) *fsnotify.Watcher

Watch opens a new FSNotify watch for the given path

Types

type Tracker

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

Tracker provides a way to track a bounded slice of file paths

func NewTracker

func NewTracker(length int) *Tracker

NewTracker returns a tracker with the specified length

func (*Tracker) Add

func (t *Tracker) Add(path string)

Add appends a path to the tracker

func (*Tracker) In

func (t *Tracker) In(path string) bool

In determines if the path exists in the tracker

Jump to

Keyboard shortcuts

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