printer

package
v0.0.0-...-19e6d8b Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConsolePrinter

type ConsolePrinter struct {
}

func (*ConsolePrinter) BigTextWithColor

func (p *ConsolePrinter) BigTextWithColor(colorStr, text string) (string, error)

func (*ConsolePrinter) HighlightText

func (p *ConsolePrinter) HighlightText(s string) string

type MockPrinter

type MockPrinter struct {
	mock.Mock
}

func (*MockPrinter) BigTextWithColor

func (p *MockPrinter) BigTextWithColor(colorStr, text string) (string, error)

func (*MockPrinter) HighlightText

func (p *MockPrinter) HighlightText(s string) string

type Printer

type Printer interface {
	HighlightText(s string) string
	BigTextWithColor(colorStr, text string) (string, error)
}

Jump to

Keyboard shortcuts

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