Timer Events Instead of Cron Jobs in Go

Timer events in Go

I’ve writing production level Go code for the past 4 years now, something that I’ve been using since the beginning is the timer events in Go.

I use timer events like how I would use cron jobs, to run a function or a script in a certain time interval.

I usually pass the timer interval in a config file to be able to change it quickly without changing the code itself.