it works again
This commit is contained in:
12
cmd/main.go
12
cmd/main.go
@@ -4,15 +4,8 @@ import (
|
|||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
"git.niplace.ru/XoxJlopeZi4BB/clock"
|
"git.niplace.ru/XoxJlopeZi4BB/clock"
|
||||||
// "clock/imageutils"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
func Check(err error) {
|
|
||||||
if err != nil {
|
|
||||||
panic(err)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
addrwithport := ":8080"
|
addrwithport := ":8080"
|
||||||
http.HandleFunc("/",
|
http.HandleFunc("/",
|
||||||
@@ -22,5 +15,8 @@ func main() {
|
|||||||
)
|
)
|
||||||
|
|
||||||
println("this thingy running on", addrwithport)
|
println("this thingy running on", addrwithport)
|
||||||
Check(http.ListenAndServe(addrwithport, nil))
|
err := http.ListenAndServe(addrwithport, nil)
|
||||||
|
if err != nil {
|
||||||
|
panic(err)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user