(w http.ResponseWriter, r *http.Request)
| 10 | type Handler struct{} |
| 11 | |
| 12 | func (h *Handler) Create(w http.ResponseWriter, r *http.Request) { |
| 13 | w.WriteHeader(http.StatusCreated) |
| 14 | w.Write([]byte("Invoice created!")) |
| 15 | } |
| 16 | |
| 17 | func (h *Handler) FindByID(w http.ResponseWriter, r *http.Request) { |
| 18 | monster, exists := loadInvoices()[r.PathValue("id")] |
nothing calls this directly
no test coverage detected