Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- func doEvery(d time.Duration, f func(time.Time)) {
- for x := range time.Tick(d) {
- f(x) // Run the function every d duration
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement