pachyderm: Index | Files

package tabwriter

import ""


Package Files


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.