textprint

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2023 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewPrefixWriter

func NewPrefixWriter(w io.Writer, prefix []byte) io.Writer

func NewTableWriter

func NewTableWriter[T any](w io.Writer, opts ...TableOption[T]) stream.WriteCloser[T]

func NewWriter

func NewWriter[T any](w io.Writer, opts ...WriterOption[T]) stream.WriteCloser[T]

func Nolastline

func Nolastline(w io.Writer) io.Writer

func QuoteBytes

func QuoteBytes(w io.Writer) io.Writer

Types

type TableOption

type TableOption[T any] func(*tableWriter[T])
func Header[T any](enable bool) TableOption[T]

func List

func List[T any](enable bool) TableOption[T]

func OrderBy

func OrderBy[T any](f func(T, T) int) TableOption[T]

type WriterOption

type WriterOption[T any] func(*writer[T])

func Format

func Format[T any](s string) WriterOption[T]

func Separator

func Separator[T any](s string) WriterOption[T]

Jump to

Keyboard shortcuts

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