renderer

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type Format

type Format string
const (
	FormatTable    Format = "table"
	FormatCSV      Format = "csv"
	FormatHTML     Format = "html"
	FormatMarkdown Format = "markdown"
	FormatJSON     Format = "json"
	FormatYAML     Format = "yaml"
)

type Formattable

type Formattable interface {
	Maps() []map[string]interface{}
}

type Renderer

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

func New

func New(f Format) *Renderer

func (*Renderer) Render

func (r *Renderer) Render(f Formattable, cols []string) (string, error)

Jump to

Keyboard shortcuts

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