text

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: May 11, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Opt

type Opt func(*opts) error

Opt is a function which can be used to set options on the text output

func OptFieldDelim

func OptFieldDelim(delim rune) Opt

Set the field deliminiter, default is '|'

func OptFieldWidth

func OptFieldWidth(width int) Opt

Set the default width of each field

type Writer

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

func NewWriter

func NewWriter(w io.Writer, opts ...Opt) (*Writer, error)

func (*Writer) Write

func (w *Writer) Write(v []string) error

Jump to

Keyboard shortcuts

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