todo

package
v0.0.0-...-c707f6b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 4, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Todo

type Todo struct {
	Content   string
	Status    bool
	CreatedAt time.Time
	UpdatedAt *time.Time
}

type TodosList

type TodosList []Todo

func (*TodosList) Add

func (todosList *TodosList) Add(content string)

func (*TodosList) Delete

func (todosList *TodosList) Delete(index int) error

func (*TodosList) GetTodo

func (todosList *TodosList) GetTodo(index int) (Todo, error)

func (*TodosList) Print

func (todosList *TodosList) Print()

func (*TodosList) ToggleStatus

func (todosList *TodosList) ToggleStatus(index int) error

func (*TodosList) UpdateContent

func (todosList *TodosList) UpdateContent(index int, content string) error

func (*TodosList) ValidateIndex

func (todosList *TodosList) ValidateIndex(index int) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳