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

theme

package
v0.1.50 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BaseStyle = lipgloss.NewStyle().
	BorderStyle(lipgloss.NormalBorder()).
	BorderForeground(lipgloss.Color("240"))
View Source
var HeaderStyle = table.DefaultStyles().Header.
	BorderStyle(lipgloss.NormalBorder()).
	BorderForeground(lipgloss.Color("240")).
	BorderBottom(true).
	Bold(false)
View Source
var SelectedStyle = table.DefaultStyles().Selected.
	Foreground(lipgloss.Color("229")).
	Background(lipgloss.Color("57")).
	Bold(false)

Functions

func AdjustTableDimensions

func AdjustTableDimensions(cols []table.Column, windowWidth int, windowHeight int) (int, int, []table.Column)

func GetColumns

func GetColumns(what TableStyle) []table.Column

func GetTableHeight

func GetTableHeight(tableHeight int, filteredRowsLen int) int

func PrintTable

func PrintTable(rows []table.Row, p TableStyle) string

Types

type TableStyle

type TableStyle int
const (
	ConfigTable TableStyle = iota
	HistoryTable
	TunnelTable
)

Jump to

Keyboard shortcuts

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