table

package
v0.6.5 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Print

func Print(t Table)

func PrintWithStyle

func PrintWithStyle(t Table, style Style)

func ToString

func ToString(t Table) string

func ToStringWithStyle

func ToStringWithStyle(t Table, style Style) string

Types

type Style added in v0.4.0

type Style string
const (
	StylePlain    Style = "plain"
	StyleBox      Style = "box"
	StyleMarkdown Style = "markdown"
)

func (Style) String added in v0.4.0

func (e Style) String() string

type Table

type Table struct {
	Headers []string
	Rows    [][]string
}

func AddRow

func AddRow(t Table, row []string) Table

func New

func New(headers []string) Table

Jump to

Keyboard shortcuts

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