clock/cmd/main.go

27 lines
378 B
Go
Raw Normal View History

2024-08-11 00:51:15 +04:00
package main
import (
"net/http"
"clock"
// "clock/imageutils"
)
func Check(err error) {
if err != nil {
panic(err)
}
}
func main() {
addrwithport := "localhost:1488"
http.HandleFunc("/",
func(w http.ResponseWriter, req *http.Request){
clock.Time(w)
},
)
println("this thingy running on", addrwithport)
Check(http.ListenAndServe(addrwithport, nil))
}