// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 package main import ( "log" "net/http" "github.com/julienschmidt/httprouter" ) // HealthCheck just returns true if the service is up. func HealthCheck(w http.ResponseWriter, req *http.Request, ps httprouter.Params) { log.Println("🚑 healthcheck ok!") w.WriteHeader(http.StatusOK) } func main() { router := httprouter.New() // Health Check router.GET("/", HealthCheck) log.Fatal(http.ListenAndServe(":80", router)) }