2016-09-13 14:41:29 +00:00
|
|
|
// Package walker is a work-in-progress
|
2014-10-14 20:54:28 +00:00
|
|
|
package walker
|
|
|
|
|
|
|
|
import (
|
2016-07-18 15:23:33 +00:00
|
|
|
"github.com/vbatts/dedupe-linker/base"
|
2014-10-14 20:54:28 +00:00
|
|
|
)
|
|
|
|
|
2016-09-13 14:41:29 +00:00
|
|
|
type walker struct {
|
2014-10-14 20:54:28 +00:00
|
|
|
Base *base.Base
|
|
|
|
}
|
|
|
|
|
2016-09-13 14:41:29 +00:00
|
|
|
func (w walker) Walk(path string, quit chan int) error {
|
2016-09-08 14:48:40 +00:00
|
|
|
// XXX what is going on here?
|
2014-10-14 20:54:28 +00:00
|
|
|
select {
|
|
|
|
case <-quit:
|
2016-09-08 14:48:40 +00:00
|
|
|
close(quit)
|
2014-10-14 20:54:28 +00:00
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|