it works again
This commit is contained in:
24
cmd/main.go
24
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))
|
||||
}
|
||||
|
Reference in New Issue
Block a user