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

Function NewTaskList

todo.go:309–314  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

307}
308
309func NewTaskList() TaskList {
310 return &taskListImpl{
311 taskNodeImpl: newTaskNode(-1),
312 title: "",
313 }
314}
315
316// Convert "1.2.3" to int[]{0, 1, 2} ready for indexing into TaskNodes
317func indexFromString(index string) Index {

Callers 8

mainFunction · 0.92
handleListMethod · 0.92
handleAddMethod · 0.92
fromMarshalableTaskListFunction · 0.85
DeserializeMethod · 0.85
TestFindFunction · 0.85
TestDeleteFunction · 0.85
TestReparentFunction · 0.85

Calls 1

newTaskNodeFunction · 0.85

Tested by 3

TestFindFunction · 0.68
TestDeleteFunction · 0.68
TestReparentFunction · 0.68