Advertisement
Guest User

Untitled

a guest
Jun 16th, 2019
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.15 KB | None | 0 0
  1. func doEvery(d time.Duration, f func(time.Time)) {
  2. for x := range time.Tick(d) {
  3. f(x) // Run the function every d duration
  4. }
  5. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement