common

package
v1.4.1-alpha Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CommonConfig

type CommonConfig struct {
	Prefix string
	Suffix string
}

type CommonOption

type CommonOption func(*CommonConfig)

func WithPrefix

func WithPrefix(prefix string) CommonOption

func WithSuffix

func WithSuffix(suffix string) CommonOption

type TableConfig

type TableConfig struct {
	Prefix     string
	Suffix     string
	Columns    []interface{}
	Mapper     interface{}
	ShowHeader bool
	Style      lipgloss.Style
}

type TableOption

type TableOption func(*TableConfig)

func WithTableColumns

func WithTableColumns(cols []interface{}) TableOption

func WithTableShowHeader

func WithTableShowHeader(show bool) TableOption

func WithTableStyle

func WithTableStyle(style lipgloss.Style) TableOption

type TextConfig

type TextConfig struct {
	Prefix string
	Suffix string
	Style  lipgloss.Style
}

type TextOption

type TextOption func(*TextConfig)

func WithTextStyle

func WithTextStyle(style lipgloss.Style) TextOption

type TreeConfig

type TreeConfig struct {
	Prefix    string
	Suffix    string
	Formatter interface{}
	Style     lipgloss.Style
}

type TreeOption

type TreeOption func(*TreeConfig)

func WithTreeFormatter

func WithTreeFormatter(formatter interface{}) TreeOption

func WithTreeStyle

func WithTreeStyle(style lipgloss.Style) TreeOption

Jump to

Keyboard shortcuts

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