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

table

package
v1.2.18 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 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