Redo File structure

This commit is contained in:
Gregory Wells
2026-03-24 16:52:22 -04:00
parent c5358e6c50
commit b96f65c294
8 changed files with 3 additions and 2 deletions

16
src/main/worker.go Normal file
View File

@@ -0,0 +1,16 @@
package main
import (
"time"
)
func createWorker(interval time.Duration, task func()) {
go func() {
ticker := time.NewTicker(interval)
defer ticker.Stop()
for range ticker.C {
task()
}
}()
}