Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package main
- import (
- "log"
- "time"
- )
- func main() {
- t := time.NewTicker(10 * time.Second)
- for {
- helloworld()
- <-t.C
- }
- }
- func helloworld() {
- log.Printf("Hello, World!\n")
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement