alerts-and-other-stuff/main.go

14 lines
257 B
Go
Raw Normal View History

2025-11-23 13:54:05 +01:00
package main
import (
"log"
2025-11-23 16:39:06 +01:00
"fmt"
"net/http"
2025-11-23 13:54:05 +01:00
)
func main() {
cfg := LoadConfig()
2025-11-23 16:39:06 +01:00
http.HandleFunc("/", alertReceiver)
log.Printf("Server starting on http://localhost:%d", cfg.Port)
log.Fatal(http.ListenAndServe(fmt.Sprintf(":%d", cfg.Port), nil))
2025-11-23 13:54:05 +01:00
}