tablewriter

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TableWriter

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

func NewTableWriter

func NewTableWriter(output io.Writer, config TableWriterConfig) *TableWriter

func (TableWriter) RenderTable

func (tw TableWriter) RenderTable(rows [][]string)

type TableWriterConfig

type TableWriterConfig struct {
	Border          *bool
	CenterSeparator *string
	ColumnAlignment *[]int
	ColumnSeparator *string
	Header          *[]string
	HeaderLine      *bool
	RowSeparator    *string
	TablePadding    *string
}

Jump to

Keyboard shortcuts

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