table

package
v0.48.1 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Print

func Print(t Table)

func ToString

func ToString(t Table) string

Types

type Style added in v0.4.0

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

func ParseStyle added in v0.13.1

func ParseStyle(s string) (Style, bool)

func (Style) String added in v0.4.0

func (e Style) String() string

type Table

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

func AddRow

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

func New

func New(headers []string) Table

func WithStyle added in v0.48.1

func WithStyle(t Table, style Style) Table

Jump to

Keyboard shortcuts

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