fake

package
v0.0.0-...-c7d747a Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CtxWithDefaultPrinter

func CtxWithDefaultPrinter() context.Context

CtxWithDefaultPrinter returns a new context with the printer which has os streams

func CtxWithPrinter

func CtxWithPrinter(outStream, errStream io.Writer) context.Context

CtxWithPrinter returns a new context with Printer added.

Types

type Printer

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

Printer implements the printer.Printer interface and just ignores all print calls.

func (*Printer) ErrStream

func (np *Printer) ErrStream() io.Writer

func (*Printer) OptPrintf

func (np *Printer) OptPrintf(*printer.Options, string, ...interface{})

func (*Printer) OutStream

func (np *Printer) OutStream() io.Writer

func (*Printer) PrintPackage

func (np *Printer) PrintPackage(*pkg.Pkg, bool)

func (*Printer) Printf

func (np *Printer) Printf(string, ...interface{})

Jump to

Keyboard shortcuts

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