MCPcopy Create free account
hub / github.com/augmentable-dev/tickgit / NewToDos

Function NewToDos

pkg/todos/todos.go:58–67  ·  view source on GitHub ↗

NewToDos produces a list of ToDos from a list of comments

(comments comments.Comments)

Source from the content-addressed store, hash-verified

56
57// NewToDos produces a list of ToDos from a list of comments
58func NewToDos(comments comments.Comments) ToDos {
59 todos := make(ToDos, 0)
60 for _, comment := range comments {
61 todo := NewToDo(*comment)
62 if todo != nil {
63 todos = append(todos, todo)
64 }
65 }
66 return todos
67}
68
69// Len returns the number of todos
70func (t ToDos) Len() int {

Callers

nothing calls this directly

Calls 1

NewToDoFunction · 0.85

Tested by

no test coverage detected