Documentation ¶
Index ¶
- func NewPrefixWriter(w io.Writer, prefix []byte) io.Writer
- func NewTableWriter[T any](w io.Writer, opts ...TableOption[T]) stream.WriteCloser[T]
- func NewWriter[T any](w io.Writer, opts ...WriterOption[T]) stream.WriteCloser[T]
- func Nolastline(w io.Writer) io.Writer
- func QuoteBytes(w io.Writer) io.Writer
- type TableOption
- type WriterOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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]
Types ¶
type TableOption ¶
type TableOption[T any] func(*tableWriter[T])
func Header ¶
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]
Click to show internal directories.
Click to hide internal directories.