internal

package
v2.0.0-beta.5 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ErrorFmt

func ErrorFmt(err error) error

ErrorFmt formats errors presented to the user such that the first letter in the error is capitalized and ends with an appropriate punctuation.

Types

type TabWriter

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

TabWriter wraps tab writer headers logic.

func NewTabWriter

func NewTabWriter(w io.Writer) *TabWriter

NewTabWriter creates a new tab writer.

func (*TabWriter) Flush

func (w *TabWriter) Flush()

Flush should be called after the last call to Write to ensure that any data buffered in the Writer is written to output. Any incomplete escape sequence at the end is considered complete for formatting purposes.

func (*TabWriter) HideHeaders

func (w *TabWriter) HideHeaders(b bool)

HideHeaders will set the hideHeaders flag.

func (*TabWriter) Write

func (w *TabWriter) Write(m map[string]interface{})

Write will write the map into embed tab writer.

func (*TabWriter) WriteHeaders

func (w *TabWriter) WriteHeaders(h ...string)

WriteHeaders will write headers.

Jump to

Keyboard shortcuts

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