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

layouts

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2026 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 defines the standard, rounded-corner layout for Minder tables.
	Default TableLayout = "default"

	// Condensed defines a thin-border layout for dense data.
	Condensed TableLayout = "condensed"

	// Heavy defines a bold-border layout for high-visibility tables.
	Heavy TableLayout = "heavy"
)

Jump to

Keyboard shortcuts

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