handlers

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2023 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ColorDefault = "\x1b[39m"

	ColorRed    = "\x1b[91m"
	ColorGreen  = "\x1b[32m"
	ColorBlue   = "\x1b[94m"
	ColorPurple = "\x1b[35m"
)

Variables

This section is empty.

Functions

func GetInput

func GetInput(arg ...string) (string, error)

Types

type Tasks

type Tasks []item

func (*Tasks) Add

func (t *Tasks) Add(task string) error

func (*Tasks) CountPending

func (t *Tasks) CountPending() int

func (*Tasks) Delete

func (t *Tasks) Delete(taskNum int) error

func (*Tasks) DeleteAll

func (t *Tasks) DeleteAll() error

func (*Tasks) Done

func (t *Tasks) Done(taskNum int) error

func (*Tasks) List

func (t *Tasks) List() error

func (*Tasks) Load

func (t *Tasks) Load(filenme string) error

func (*Tasks) Save

func (t *Tasks) Save(filename string) error

func (*Tasks) Update

func (t *Tasks) Update(taskNum int, task string) error

Jump to

Keyboard shortcuts

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