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

Method Create

todo.go:222–226  ·  view source on GitHub ↗
(title string, priority Priority)

Source from the content-addressed store, hash-verified

220}
221
222func (t *taskNodeImpl) Create(title string, priority Priority) Task {
223 task := newTask(t.Len(), title, priority)
224 t.Append(task)
225 return task
226}
227
228func (t *taskNodeImpl) Delete() {
229 parent := t.Parent().(*taskNodeImpl)

Callers

nothing calls this directly

Calls 3

LenMethod · 0.95
AppendMethod · 0.95
newTaskFunction · 0.85

Tested by

no test coverage detected