2024-08-11 00:51:15 +04:00
|
|
|
package main
|
|
|
|
|
|
|
|
import (
|
|
|
|
"net/http"
|
|
|
|
|
2024-08-11 01:20:41 +04:00
|
|
|
"git.niplace.ru/XoxJlopeZ_1488/clock"
|
2024-08-11 00:51:15 +04:00
|
|
|
// "clock/imageutils"
|
|
|
|
)
|
|
|
|
|
|
|
|
func Check(err error) {
|
|
|
|
if err != nil {
|
|
|
|
panic(err)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
func main() {
|
2024-08-20 07:14:14 +04:00
|
|
|
addrwithport := ":8080"
|
2024-08-11 00:51:15 +04:00
|
|
|
http.HandleFunc("/",
|
|
|
|
func(w http.ResponseWriter, req *http.Request){
|
|
|
|
clock.Time(w)
|
|
|
|
},
|
|
|
|
)
|
|
|
|
|
|
|
|
println("this thingy running on", addrwithport)
|
|
|
|
Check(http.ListenAndServe(addrwithport, nil))
|
|
|
|
}
|