table

package
v1.2.5 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Table

func Table(columns []Column, dataSource []Item, opts ...func(*Option)) error

func WithClearOption

func WithClearOption() func(*Option)

Types

type Column

type Column struct {
	Key             string `json:"key"`
	Title           string `json:"title"`
	Width           int    `json:"width"`
	DisableEllipsis bool   `json:"disable_ellipsis"`
}

type Item

type Item = map[string]string

type Option

type Option struct {
	Clear bool
}

Jump to

Keyboard shortcuts

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