This commit is contained in:
2026-03-29 17:03:48 +03:00
parent 7143e96ef3
commit 3880b353c1
20 changed files with 491 additions and 23 deletions

22
pkg/clock/cmd/main.go Normal file
View File

@@ -0,0 +1,22 @@
package main
import (
"net/http"
"git.niplace.ru/XoxJlopeZi4BB/clock"
)
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)
}
}