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

Function newTask

todo.go:250–258  ·  view source on GitHub ↗
(id int, text string, priority Priority)

Source from the content-addressed store, hash-verified

248}
249
250func newTask(id int, text string, priority Priority) Task {
251 return &taskImpl{
252 taskNodeImpl: newTaskNode(id),
253 text: text,
254 priority: priority,
255 created: time.Now().UTC(),
256 completed: time.Time{},
257 }
258}
259
260func (t *taskImpl) ID() int {
261 return t.id

Callers 1

CreateMethod · 0.85

Calls 1

newTaskNodeFunction · 0.85

Tested by

no test coverage detected