Files
go-example/main.go

22 lines
285 B
Go

package main
import (
"fmt"
"k8s-example/hello"
"net/http"
)
var (
version = "1.0.0-local"
)
func main() {
http.HandleFunc("/hello", hello.Handler)
fmt.Println("server on :8800, version:", version)
err := http.ListenAndServe(":8800", nil)
if err != nil {
panic(err)
}
}