tui

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2018 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Overview

Package tui contains a set of helper objects and functions for terminal based user interfaces.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Blue

func Blue(s string) string

Blue makes the string green.

func Bold

func Bold(s string) string

Bold makes the string bold.

func Dim

func Dim(s string) string

Dim makes the string diminished.

func Green

func Green(s string) string

Green makes the string green.

func Red

func Red(s string) string

Red makes the string red.

func Table

func Table(w io.Writer, columns []string, rows [][]string)

Table accepts a slice of column labels and a 2d slice of rows and prints on the writer an ASCII based datagrid of such data.

func Yellow

func Yellow(s string) string

Yellow makes the string green.

Types

This section is empty.

Jump to

Keyboard shortcuts

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