mirror of
https://github.com/taigrr/godns
synced 2025-01-18 04:03:25 -08:00
add loop logic
This commit is contained in:
parent
02d450edcd
commit
9507da5924
5
godns.go
5
godns.go
@ -3,6 +3,7 @@ package main
|
|||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"os"
|
"os"
|
||||||
|
"time"
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
@ -25,5 +26,7 @@ func main() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func dns_loop(setting Settings, loop chan bool) {
|
func dns_loop(setting Settings, loop chan bool) {
|
||||||
|
fmt.Println("Inside the loop...")
|
||||||
|
time.Sleep(time.Second * 10)
|
||||||
|
loop <- false
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user