Documentation
¶
Index ¶
- func CreateTable[T any](data []T, opts ...Option[T]) string
- type Column
- type Option
- func WithColumns[T any](cols []Column[T]) Option[T]
- func WithPrefix[T any](prefix string) Option[T]
- func WithRowMapper[T any](mapper RowMapper[T]) Option[T]
- func WithShowHeader[T any](show bool) Option[T]
- func WithStyle[T any](style lipgloss.Style) Option[T]
- func WithSuffix[T any](suffix string) Option[T]
- type RowMapper
- type TableConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateTable ¶
Types ¶
type Option ¶
type Option[T any] func(*TableConfig[T])
func WithColumns ¶
func WithPrefix ¶
func WithRowMapper ¶
func WithShowHeader ¶
func WithSuffix ¶
type TableConfig ¶
Click to show internal directories.
Click to hide internal directories.