ui

package
v2.4.1-rc.26+incompatible Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2016 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AbortedColor = color.New(color.FgMagenta)
View Source
var FailedColor = color.New(color.FgRed)
View Source
var PausedColor = color.New(color.FgCyan)
View Source
var PendingColor = color.New(color.FgWhite)
View Source
var StartedColor = color.New(color.FgYellow)
View Source
var SucceededColor = color.New(color.FgGreen)

Functions

func Embolden

func Embolden(message string, params ...interface{}) string

func WarningColor

func WarningColor(message string, params ...interface{}) string

Types

type Data

type Data []TableRow

func (Data) Len

func (d Data) Len() int

func (Data) Less

func (d Data) Less(i int, j int) bool

func (Data) Swap

func (d Data) Swap(i int, j int)

type Table

type Table struct {
	Headers TableRow
	Data    Data
}

func (Table) Render

func (table Table) Render(dst io.Writer) error

type TableCell

type TableCell struct {
	Contents string
	Color    *color.Color
}

type TableRow

type TableRow []TableCell

Jump to

Keyboard shortcuts

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