Documentation
¶
Index ¶
- type Formatter
- type Printer
- func (p *Printer) Print(msg ...string)
- func (p *Printer) PrintFailure(msg ...string)
- func (p *Printer) PrintInfo(msg ...string)
- func (p *Printer) PrintStored(mutex *sync.Mutex)
- func (p *Printer) PrintSuccess(msg ...string)
- func (p *Printer) SetConfigs(cfg *PrinterConfig) *Printer
- func (p *Printer) SetModule(s string) *Printer
- func (p *Printer) SetNebios(s string) *Printer
- func (p *Printer) SetPort(port int) *Printer
- func (p *Printer) SetTarget(s string) *Printer
- func (p *Printer) Store(msg ...string)
- func (p *Printer) StoreFailure(msg ...string)
- func (p *Printer) StoreInfo(msg ...string)
- func (p *Printer) StoreSuccess(msg ...string)
- func (p *Printer) StoreWithoutStripping(msg ...string)
- type PrinterConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Printer ¶
type Printer struct {
// contains filtered or unexported fields
}
func NewPrinter ¶
func (*Printer) PrintFailure ¶
func (*Printer) PrintStored ¶
func (*Printer) PrintSuccess ¶
func (*Printer) SetConfigs ¶
func (p *Printer) SetConfigs(cfg *PrinterConfig) *Printer
func (*Printer) StoreFailure ¶
func (*Printer) StoreSuccess ¶
func (*Printer) StoreWithoutStripping ¶
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
Click to show internal directories.
Click to hide internal directories.