printer

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2021 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Overview

Package printer contains functionality to write output

Index

Constants

This section is empty.

Variables

View Source
var Stdout io.Writer = os.Stdout

Functions

This section is empty.

Types

type DefaultPrinter

type DefaultPrinter struct{}

func (DefaultPrinter) Print

func (d DefaultPrinter) Print(info *disk.PlotInfo)

Print prints the amount of plots left

type Printer

type Printer interface {
	Print(info *disk.PlotInfo)
}

Printer interface to print something

type VerbosePrinter

type VerbosePrinter struct{}

func (VerbosePrinter) Print

func (v VerbosePrinter) Print(info *disk.PlotInfo)

Print prints two lines with the following columns: Path, Total Amount of Plots, Amount of Plots Stored, Plots Left

Jump to

Keyboard shortcuts

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