table

package
v0.0.80 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package table contains utilities for rendering tables

Index

Constants

View Source
const (
	// Simple is a simple table
	Simple = "simple"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Table

type Table interface {
	AddRow(row ...string)
	AddRowWithColor(row ...layouts.ColoredColumn)
	Render()
}

Table is an interface for rendering tables

func New

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

New creates a new table

Directories

Path Synopsis
Package layouts defines the available table layouts
Package layouts defines the available table layouts
Package simple contains a simple table
Package simple contains a simple table

Jump to

Keyboard shortcuts

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