service

package
v0.0.0-...-d794215 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Item

type Item struct {
	Task        string
	Done        bool
	CreatedAt   time.Time
	CompletedAt time.Time
}

type Todos

type Todos []Item

func (*Todos) Add

func (t *Todos) Add(task string)

func (*Todos) Clear

func (t *Todos) Clear() error

func (*Todos) Complete

func (t *Todos) Complete(index int) error

func (*Todos) Get

func (t *Todos) Get(filename string) error

func (*Todos) Load

func (t *Todos) Load(filename string) error

func (*Todos) Print

func (t *Todos) Print()

func (*Todos) Remove

func (t *Todos) Remove(index int) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL