diff --git a/main.go b/main.go index b26de2d..6593ee0 100644 --- a/main.go +++ b/main.go @@ -1,11 +1,14 @@ package main import ( - "net/http" "k8s-example/hello" + "net/http" ) func main() { http.HandleFunc("/hello", hello.Handler) - http.ListenAndServe(":8800", nil) -} \ No newline at end of file + err := http.ListenAndServe(":8800", nil) + if err != nil { + panic(err) + } +}