15 lines
192 B
Go
15 lines
192 B
Go
package main
|
|
|
|
import (
|
|
"k8s-example/hello"
|
|
"net/http"
|
|
)
|
|
|
|
func main() {
|
|
http.HandleFunc("/hello", hello.Handler)
|
|
err := http.ListenAndServe(":8800", nil)
|
|
if err != nil {
|
|
panic(err)
|
|
}
|
|
}
|