writer

package
v6.9.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2015 License: MIT, Apache-2.0 Imports: 3 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeGinkgoWriter

type FakeGinkgoWriter struct {
	EventStream []string
}

func NewFake

func NewFake() *FakeGinkgoWriter

func (*FakeGinkgoWriter) AddEvent

func (writer *FakeGinkgoWriter) AddEvent(event string)

func (*FakeGinkgoWriter) DumpOut

func (writer *FakeGinkgoWriter) DumpOut()

func (*FakeGinkgoWriter) DumpOutWithHeader

func (writer *FakeGinkgoWriter) DumpOutWithHeader(header string)

func (*FakeGinkgoWriter) Truncate

func (writer *FakeGinkgoWriter) Truncate()

func (*FakeGinkgoWriter) Write

func (writer *FakeGinkgoWriter) Write(data []byte) (n int, err error)

type Writer

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

func New

func New(outWriter io.Writer) *Writer

func (*Writer) DumpOut

func (w *Writer) DumpOut()

func (*Writer) DumpOutWithHeader

func (w *Writer) DumpOutWithHeader(header string)

func (*Writer) SetStream

func (w *Writer) SetStream(stream bool)

func (*Writer) Truncate

func (w *Writer) Truncate()

func (*Writer) Write

func (w *Writer) Write(b []byte) (n int, err error)

type WriterInterface

type WriterInterface interface {
	io.Writer

	Truncate()
	DumpOut()
	DumpOutWithHeader(header string)
}

Jump to

Keyboard shortcuts

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