package health import "net/http" type Controller struct { } func New() *Controller { return &Controller{} } func (c *Controller) MountTo(mux *http.ServeMux) { mux.HandleFunc("GET /health", c.Index) } func (c *Controller) Index(w http.ResponseWriter, r *http.Request) { w.WriteHeader(http.StatusOK) }