tables

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2024 License: Apache-2.0 Imports: 4 Imported by: 50

Documentation

Overview

Package tables is a collection of functions that generate tables for the CLI

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TableOutputWriter

type TableOutputWriter interface {
	SetHeaders(headers ...string)
	AddRow(items ...interface{})
	Render()
	RowCount() int
}

TableOutputWriter is the interface to write out tables

func NewTableWriter

func NewTableWriter(output io.Writer, headers ...string) TableOutputWriter

NewTableWriter gets a new instance of our table output writer

Jump to

Keyboard shortcuts

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