format

package
v0.9.25 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCsvFormatter

func NewCsvFormatter() *csvFormatter

func NewTableFormatter

func NewTableFormatter() *tableFormatter

Types

type FormatType

type FormatType string
const (
	CsvFormat   FormatType = "csv"
	TableFormat FormatType = "table"
)

type Formatter

type Formatter interface {
	Header(line []string)
	Write(line []string) error
	Dump(lines [][]string) error
	Flush() error
}

func New

func New(format FormatType) Formatter

Jump to

Keyboard shortcuts

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