pachyderm: github.com/pachyderm/pachyderm/src/server/pkg/tabwriter Index | Files

package tabwriter

import "github.com/pachyderm/pachyderm/src/server/pkg/tabwriter"

Index

Package Files

tabwriter.go

type Writer Uses

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

Writer is like tabwriter.Writer in the stdlibexcept that it's suitable for large numbers of items because it periodically flushes its contents and reprints a header when it does.

func NewWriter Uses

func NewWriter(w io.Writer, header string) *Writer

NewWriter returns a new Writer, it will flush when it gets termHeight many lines, including the header line. The header line will be reprinted termHeight many lines have been written. NewStreamingWriter will panic if it's given a header that doesn't end in \n.

func (*Writer) Flush Uses

func (w *Writer) Flush() error

Flush flushes the underlying tab writer.

func (*Writer) Write Uses

func (w *Writer) Write(buf []byte) (int, error)

Write writes a line to the tabwriter.

Package tabwriter imports 3 packages (graph) and is imported by 7 packages. Updated 2019-04-12. Refresh now. Tools for package owners.