Example 2: In this example, we use a for loop to create 5 timers, each with a duration of 1 second. We reset each timer after it has fired to fire again after 2 seconds. We use the time.AfterFunc function to execute a function after a timer has fired.go import ( "fmt" "time" ) func main() { for i := 1; i <= 5; i++ { timer := time.AfterFunc(1*time.Second, func() { fmt.Printf("Timer %d fired!\n", i) timer.Reset(2 * time.Second) }) } time.Sleep(10 * time.Second) } ``` Package library: time.