simple

package
v0.0.47 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package simple contains a simple table

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Table

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

Table is a wrapper around tablewriter.Table

func New

func New(layout layouts.TableLayout, header []string) *Table

New creates a new table with the given header

func (*Table) AddRow

func (t *Table) AddRow(row ...string)

AddRow adds a row

func (*Table) AddRowWithColor

func (t *Table) AddRowWithColor(row ...layouts.ColoredColumn)

AddRowWithColor adds a row with the given colors

func (*Table) Render

func (t *Table) Render()

Render renders the table

Jump to

Keyboard shortcuts

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