layouts

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2025 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Overview

Package layouts defines the available table layouts

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RowsFromColoredColumns

func RowsFromColoredColumns(c []ColoredColumn) []string

RowsFromColoredColumns returns the rows of the colored columns

Types

type Color

type Color string

Color is the type for table colors

const (
	// ColorRed is the color red
	ColorRed Color = "red"
	// ColorGreen is the color green
	ColorGreen Color = "green"
	// ColorYellow is the color yellow
	ColorYellow Color = "yellow"
)

type ColoredColumn

type ColoredColumn struct {
	Column string
	Color  Color
}

ColoredColumn is a column with a color

func GreenColumn

func GreenColumn(column string) ColoredColumn

GreenColumn returns a green colored column

func NoColor

func NoColor(column string) ColoredColumn

NoColor returns a column with no color

func RedColumn

func RedColumn(column string) ColoredColumn

RedColumn returns a red colored column

func YellowColumn

func YellowColumn(column string) ColoredColumn

YellowColumn returns a yellow colored column

type TableLayout

type TableLayout string

TableLayout is the type for table layouts

const (
	// Default is the default table layout
	Default TableLayout = ""
)

Jump to

Keyboard shortcuts

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