printer

package
v0.0.0-...-8a491d9 Latest Latest
Warning

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

Go to latest
Published: May 7, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Printer

type Printer interface {
	PrintItem(*task.Item)
	PrintList([]*task.Item)
}

Printer interface

type TextPrinter

type TextPrinter struct{}

TextPrinter is the structure of the screen printer

func NewText

func NewText() *TextPrinter

NewText is creating the screen printer

func (*TextPrinter) PrintItem

func (p *TextPrinter) PrintItem(task *task.Item)

PrintItem is printing detailed information on a task

func (*TextPrinter) PrintList

func (p *TextPrinter) PrintList(tasks []*task.Item)

PrintList is printing general information on all tasks

Jump to

Keyboard shortcuts

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