package handlers import "net/http" // HandleHealthCheck returns a handler for the health check // endpoint. func (s *Handlers) HandleHealthCheck() http.HandlerFunc { return func(w http.ResponseWriter, r *http.Request) { s.respondJSON(w, r, s.hc.Check(), http.StatusOK) } }