package api_impl import ( "net/http" "atlas9.dev/c/demo/api" ) type HealthApi struct{} func (HealthApi) ServeMux(mux *http.ServeMux) { mux.HandleFunc(api.Path_Health, func(w http.ResponseWriter, r *http.Request) { var res api.HealthRes res.Status = "ok" write(r.Context(), w, nil, res) }) }