(port string)
| 34 | } |
| 35 | |
| 36 | func startHTTPServer(port string) { |
| 37 | http.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) { |
| 38 | fmt.Fprint(w, "Hello from http server") |
| 39 | }) |
| 40 | // port 8080 is used by the Lambda Invoke API |
| 41 | err := http.ListenAndServe("sandbox.localdomain:"+port, nil) |
| 42 | if err != nil { |
| 43 | panic(err) |
| 44 | } |
| 45 | } |