utilities

package
v0.0.0-...-39c3cc3 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2022 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Overview

Copyright © 2022 Brochier Maxence maxence@brochier.xyz

Copyright © 2022 Brochier Maxence maxence@brochier.xyz

Index

Constants

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

	ColorRed   = "\x1b[91m"
	ColorGreen = "\x1b[32m"
	ColorBlue  = "\x1b[94m"
	ColorGray  = "\x1b[90m"
)

Variables

This section is empty.

Functions

func Blue

func Blue(s string) string

func GetInput

func GetInput(table []string) string

func GetIntInput

func GetIntInput(table []string) int

func Gray

func Gray(s string) string

func Green

func Green(s string) string

func Red

func Red(s string) string

Types

type Todos

type Todos []item

func (*Todos) Add

func (t *Todos) Add(task string)

func (*Todos) Complete

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

func (*Todos) CountPending

func (t *Todos) CountPending() int

func (*Todos) Delete

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

func (*Todos) Load

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

func (*Todos) Print

func (t *Todos) Print()

func (*Todos) Store

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

Jump to

Keyboard shortcuts

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