Versions in this module Expand all Collapse all v0 v0.3.0 Mar 5, 2025 Changes in this version + var ErrTaskNotFound = errors.New("task not found") + var ErrVersionExists = errors.New("version already exists") + var ErrVersionNotFound = errors.New("version not found") + type Service struct + func NewService(cfg *config.Config) *Service + func (s *Service) AddTask(version string, description string, parentID string) (string, error) + func (s *Service) AddVersion(version string) error + func (s *Service) GetAll() (*TodoList, error) + func (s *Service) GetByVersion(version string) (*VersionTasks, error) + func (s *Service) UpdateTask(taskID string, completed *bool, description *string) error + type Task struct + Completed bool + Description string + ID string + Indent int + LineNumber int + SubTasks []*Task + Version string + type TodoList struct + Versions []*VersionTasks + type VersionTasks struct + Tasks []*Task + Version string