nexus

package
v0.26.1 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2024 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 Printer

type Printer struct {

	// Total number of bytes written
	Written int64
	// contains filtered or unexported fields
}

func NewPrinter

func NewPrinter(w io.Writer) (*Printer, *error)

NewPrinter returns a writer nexus. The referenced error is set by all methods if an error occurs.

func (*Printer) Print

func (t *Printer) Print(args ...interface{})

Print prints arguments using the underlying writer. Does nothing if Printer has failed.

func (*Printer) Printf

func (t *Printer) Printf(format string, args ...interface{})

Printf prints a formated string using the underlying writer. Does nothing if Printer has failed.

func (*Printer) Println

func (t *Printer) Println(args ...interface{})

Println prints arguments using the underlying writer. Does nothing if Printer has failed.

func (*Printer) Write

func (t *Printer) Write(b []byte) (int, error)

Write writes the bytes using the underlying writer. Does nothing if Printer has failed.

Jump to

Keyboard shortcuts

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