feat: add Docker build and deployment workflow

This commit is contained in:
2026-01-05 13:07:56 +08:00
parent bb1bd53398
commit 79fc8cff10
5 changed files with 71 additions and 1 deletions

View File

@@ -1,12 +1,19 @@
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)