presenter

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PrintTable

func PrintTable(header []string, rows [][]string)

PrintTable formats and prints data in a table to the console with rounded Unicode borders. It receives the header and rows as slices of strings.

Uses the modern tablewriter API with StyleRounded for professional rounded borders:

╭─────────────┬─────────┬────────╮
│ INSTANCE ID │ ACCOUNT │ STATUS │
├─────────────┼─────────┼────────┤
│ i-123       │ 111111  │ ✅     │
╰─────────────┴─────────┴────────╯

This implementation uses tablewriter.NewTable (modern API) instead of tablewriter.NewWriter (legacy API) to access advanced rendering features like rounded corners via tw.StyleRounded symbols.

Types

This section is empty.

Jump to

Keyboard shortcuts

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