feat: add Docker build and deployment workflow
This commit is contained in:
7
main.go
7
main.go
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user