From 6475655ba7b0d38dc2ae50a10ba4ea82105eb3b5 Mon Sep 17 00:00:00 2001 From: Marco Kittel Date: Thu, 26 Jun 2025 06:57:21 +0200 Subject: [PATCH] Eliofile: Added HandleFunc --- eliofile/eliofile.go | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) 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 }