Golang: Implementing a cron / executing tasks at a specific time

This is a general implementation, which lets you set: interval period hour to tick minute to tick second to tick UPDATED: (the memory leak was fixed) import ( “fmt” “time” ) const INTERVAL_PERIOD time.Duration = 24 * time.Hour const HOUR_TO_TICK int = 23 const MINUTE_TO_TICK int = 00 const SECOND_TO_TICK int = 03 type jobTicker … Read more