examples/

directory
v0.1.0-alpha.2 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2026 License: GPL-3.0

README

Examples

Basic

go run examples/basic/main.go
==========================
  Name     Age    City    
==========================
  Alice    30     London  
  Bob      25     Berlin  

Full-Width

go run examples/full-width/main.go

A column with WithMaxWidth will take up all the remaining space in the table, allowing to align columns to the right of it:

================================================================================
  Name                                                          Age  │  City    
================================================================================
  Alice                                                         30   │  London  
  Bob                                                           25   │  Berlin  

Note that this is 80 characters wide, the width of the terminal the example is run in.

With Lipgloss Styling

go run examples/with-lipgloss/main.go

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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