diff --git a/eliofile/eliofile.go b/eliofile/eliofile.go index f0f38be..8f3fe71 100644 --- a/eliofile/eliofile.go +++ b/eliofile/eliofile.go @@ -1,22 +1,21 @@ package eliofile import ( - "fmt" "log" "os" "strings" ) +type ElioHandleFunc func(filename string) + type ElioDateiFoo struct { - process func(file string) + process ElioHandleFunc dir string } -func NewElioDateiFoo(dir string) *ElioDateiFoo { +func NewElioDateiFoo(dir string, process ElioHandleFunc) *ElioDateiFoo { df := ElioDateiFoo{dir: dir, - process: func(file string) { - fmt.Println(file) - }, + process: process, } return &df }