test/app/main.go
Zeev Diukman d4ac79185f helper
2025-01-09 10:28:19 +02:00

18 lines
328 B
Go

package main
import (
"log"
"os"
"os/signal"
)
func main() {
// Run the HTTP and DNS servers concurrently
go runHTTP()
// go runDNS()
// Wait for SIGINT (Ctrl+C) to gracefully shut down the server
stop := make(chan os.Signal, 1)
signal.Notify(stop, os.Interrupt)
<-stop
log.Println("Shutting down the server...")
}