MCPcopy
hub / github.com/docker/docker-agent / Len

Method Len

pkg/tools/builtin/todo/todo.go:125–125  ·  view source on GitHub ↗

Len returns the number of todo items.

(ctx context.Context)

Source from the content-addressed store, hash-verified

123 All(ctx context.Context) []Todo
124 // Len returns the number of todo items.
125 Len(ctx context.Context) int
126 // FindByID returns the index of the todo with the given ID, or -1 if not found.
127 FindByID(ctx context.Context, id string) int
128 // Update modifies the todo at the given index using the provided function.

Calls

no outgoing calls