MCPcopy Create free account
hub / github.com/alecthomas/devtodo2 / doRemove

Function doRemove

cmd/todo2/main.go:135–140  ·  view source on GitHub ↗
(tasks devtodo2.TaskList, references []devtodo2.Task)

Source from the content-addressed store, hash-verified

133}
134
135func doRemove(tasks devtodo2.TaskList, references []devtodo2.Task) {
136 for _, task := range references {
137 task.Delete()
138 }
139 saveTaskList(tasks)
140}
141
142func doPurge(tasks devtodo2.TaskList, age time.Duration) {
143 cutoff := time.Now().Add(-age)

Callers 1

processActionFunction · 0.85

Calls 2

saveTaskListFunction · 0.85
DeleteMethod · 0.65

Tested by

no test coverage detected