1
0
mirror of https://github.com/taigrr/godns synced 2025-01-18 04:03:25 -08:00

add loop logic

This commit is contained in:
Timothy 2014-05-12 13:39:01 +08:00
parent 02d450edcd
commit 9507da5924

View File

@ -3,6 +3,7 @@ package main
import (
"fmt"
"os"
"time"
)
func main() {
@ -25,5 +26,7 @@ func main() {
}
func dns_loop(setting Settings, loop chan bool) {
fmt.Println("Inside the loop...")
time.Sleep(time.Second * 10)
loop <- false
}