printer

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

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

Go to latest
Published: Apr 2, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Formatter

type Formatter func(string, ...interface{}) string

type Printer

type Printer struct {
	// contains filtered or unexported fields
}

func NewPrinter

func NewPrinter(module, target, netbios string, port int) *Printer

func (*Printer) Print

func (p *Printer) Print(msg ...string)

func (*Printer) PrintFailure

func (p *Printer) PrintFailure(msg ...string)

func (*Printer) PrintInfo

func (p *Printer) PrintInfo(msg ...string)

func (*Printer) PrintStored

func (p *Printer) PrintStored(mutex *sync.Mutex)

func (*Printer) PrintSuccess

func (p *Printer) PrintSuccess(msg ...string)

func (*Printer) SetConfigs

func (p *Printer) SetConfigs(cfg *PrinterConfig) *Printer

func (*Printer) SetModule

func (p *Printer) SetModule(s string) *Printer

func (*Printer) SetNebios

func (p *Printer) SetNebios(s string) *Printer

func (*Printer) SetPort

func (p *Printer) SetPort(port int) *Printer

func (*Printer) SetTarget

func (p *Printer) SetTarget(s string) *Printer

func (*Printer) Store

func (p *Printer) Store(msg ...string)

func (*Printer) StoreFailure

func (p *Printer) StoreFailure(msg ...string)

func (*Printer) StoreInfo

func (p *Printer) StoreInfo(msg ...string)

func (*Printer) StoreSuccess

func (p *Printer) StoreSuccess(msg ...string)

func (*Printer) StoreWithoutStripping

func (p *Printer) StoreWithoutStripping(msg ...string)

type PrinterConfig

type PrinterConfig struct {
	Writer               io.Writer
	ColumnWidth          int
	FirstColumnFormatter Formatter
	OutputFormatter      Formatter
	SuccessFormatter     Formatter
	SuccessSymbol        string
	FailureFormatter     Formatter
	FailureSymbol        string
}

func DefaultPrinterConfig

func DefaultPrinterConfig() *PrinterConfig

Jump to

Keyboard shortcuts

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