From c90924a4efa519ad519d9b00b0c623ea9d50c41f Mon Sep 17 00:00:00 2001 From: Marco Kittel Date: Thu, 26 Jun 2025 22:13:01 +0200 Subject: [PATCH] Added Pointer to Map --- eliofile/eliofile.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/eliofile/eliofile.go b/eliofile/eliofile.go index 8f3fe71..a25e8fc 100644 --- a/eliofile/eliofile.go +++ b/eliofile/eliofile.go @@ -6,7 +6,7 @@ import ( "strings" ) -type ElioHandleFunc func(filename string) +type ElioHandleFunc func(filename string, csvfilemap *map[string]string) bool type ElioDateiFoo struct { process ElioHandleFunc @@ -20,7 +20,7 @@ func NewElioDateiFoo(dir string, process ElioHandleFunc) *ElioDateiFoo { return &df } -func (f *ElioDateiFoo) ScanCsv() { +func (f *ElioDateiFoo) ScanCsv(csvfilemap *map[string]string) { files, err := os.ReadDir(f.dir) if err != nil { @@ -29,7 +29,7 @@ func (f *ElioDateiFoo) ScanCsv() { for _, file := range files { if strings.Contains(file.Name(), "csv") { - f.process(file.Name()) + f.process(file.Name(), csvfilemap) } } }