Discover Packages
codeberg.org/mtnr_dev/todo-cli
internal
todo
package
Version:
v0.1.0
Opens a new window with list of versions in this module.
Published: Feb 8, 2026
License: MIT
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
Package todo
Copyright © 2026 mtnr_dev <timo@mtnr.cloud>
type Todo struct {
ID int `json:"id"`
Title string `json:"title"`
Description string `json:"description"`
Completed bool `json:"completed"`
CreatedAt time .Time `json:"created_at"`
}
type TodoList struct {
Todos []Todo `json:"todos"`
NextID int `json:"next_id"`
}
Complete marks a todo as completed
Delete removes a todo from the list
GetActive returns all uncompleted todos
GetByID retrieves a todo by its ID
GetCompleted returns all completed todos
Source Files
¶
Click to show internal directories.
Click to hide internal directories.