Skip to content

sxk10812139/kwatcher

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Example

watcher := kwatcher.NewWatcher()
watcher.SetInterval(time.Second)
watcher.AddFiles("path/to/file")
watcher.SetCallback(func(modifyFiles []kwatcher.Path) {
  for _, path := range modifyFiles {
    fmt.Println(path + "changed")
  }
})
watcher.Run()

screenshot

2018091715371192238739.png

About

File watcher

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages