From 7ecbcbecfd399dec52e27895ce679be5396488d8 Mon Sep 17 00:00:00 2001 From: potassium Date: Sun, 17 Aug 2025 22:18:03 +0300 Subject: [PATCH] it works again --- cmd/main.go | 24 ++++++++++-------------- 1 file changed, 10 insertions(+), 14 deletions(-) diff --git a/cmd/main.go b/cmd/main.go index 5dbf684..00a960a 100644 --- a/cmd/main.go +++ b/cmd/main.go @@ -4,23 +4,19 @@ import ( "net/http" "git.niplace.ru/XoxJlopeZi4BB/clock" - // "clock/imageutils" ) -func Check(err error) { +func main() { + addrwithport := ":8080" + http.HandleFunc("/", + func(w http.ResponseWriter, req *http.Request) { + clock.Time(w) + }, + ) + + println("this thingy running on", addrwithport) + err := http.ListenAndServe(addrwithport, nil) if err != nil { panic(err) } } - -func main() { - addrwithport := ":8080" - http.HandleFunc("/", - func(w http.ResponseWriter, req *http.Request){ - clock.Time(w) - }, - ) - - println("this thingy running on", addrwithport) - Check(http.ListenAndServe(addrwithport, nil)) -}