Advertisement
Guest User

Untitled

a guest
Aug 21st, 2017
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.18 KB | None | 0 0
  1. package main
  2.  
  3. import (
  4. "log"
  5. "time"
  6. )
  7.  
  8. func main() {
  9. t := time.NewTicker(10 * time.Second)
  10. for {
  11. helloworld()
  12. <-t.C
  13. }
  14. }
  15.  
  16. func helloworld() {
  17. log.Printf("Hello, World!\n")
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement