tabwriter

package
v2.7.5 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: MIT Imports: 4 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TabWriter

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

TabWriter wraps tab writer headers logic.

func NewTabWriter

func NewTabWriter(w io.Writer, hideHeaders bool) *TabWriter

NewTabWriter creates a new tab writer.

func (*TabWriter) Flush

func (w *TabWriter) Flush() error

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) Write

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

Write will Write the map into embed tab writer.

func (*TabWriter) WriteHeaders

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

WriteHeaders will Write headers.

Jump to

Keyboard shortcuts

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