Help us shape the future of Go! Take the 2026 Go Developer Survey

tui

package
v0.0.0-...-b747dff Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2026 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LogStyle

func LogStyle() *log.Styles

LogStyle returns a customized log style with standardized level names and error colors.

Types

type Table

type Table[T any] struct {
	// contains filtered or unexported fields
}

Table is a generic table widget that displays items of type T as rows.

func NewTable

func NewTable[T any](conv func(item T) []string) *Table[T]

NewTable creates a new table with the provided converter function for items.

func (*Table[T]) AddItem

func (t *Table[T]) AddItem(item T)

func (*Table[T]) AddItems

func (t *Table[T]) AddItems(items []T)

func (*Table[T]) AutoWidth

func (t *Table[T]) AutoWidth()

func (*Table[T]) Init

func (t *Table[T]) Init() tea.Cmd

Init implements tea.Model.

func (*Table[T]) SetColumns

func (t *Table[T]) SetColumns(c ...table.Column)

func (*Table[T]) Update

func (t *Table[T]) Update(msg tea.Msg) (tea.Model, tea.Cmd)

Update implements tea.Model.

func (*Table[T]) View

func (t *Table[T]) View() string

View implements tea.Model.

Jump to

Keyboard shortcuts

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