(tasks []*model.Task, id string)
| 379 | } |
| 380 | |
| 381 | func findTaskByID(tasks []*model.Task, id string) *model.Task { |
| 382 | for _, t := range tasks { |
| 383 | if t.ID == id { |
| 384 | return t |
| 385 | } |
| 386 | } |
| 387 | return nil |
| 388 | } |
| 389 | |
| 390 | func handleUpdateTask(dp *DataProvider, readonly bool) http.HandlerFunc { |
| 391 | return func(w http.ResponseWriter, r *http.Request) { |
no outgoing calls
no test coverage detected