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

Function toMarshalableTaskList

jsonio.go:68–73  ·  view source on GitHub ↗
(t TaskList)

Source from the content-addressed store, hash-verified

66}
67
68func toMarshalableTaskList(t TaskList) *marshalableTaskList {
69 return &marshalableTaskList{
70 Title: t.Title(),
71 Tasks: toMarshalableTask(t),
72 }
73}
74
75func toMarshalableTask(n TaskNode) []*marshalableTask {
76 children := make([]*marshalableTask, n.Len())

Callers 1

SerializeMethod · 0.85

Calls 2

toMarshalableTaskFunction · 0.85
TitleMethod · 0.65

Tested by

no test coverage detected