console

package
v1.0.0-beta.4 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var COLORS map[string]ColorFunc
View Source
var Monochrome = func(s string) string {
	return s
}
View Source
var NAMES = []string{
	"grey",
	"red",
	"green",
	"yellow",
	"blue",
	"magenta",
	"cyan",
	"white",
}
View Source
var Rainbow = make(chan ColorFunc)

Functions

This section is empty.

Types

type ColorFunc

type ColorFunc func(s string) string

ColorFunc use ANSI codes to render colored text on console

type ProgressWriter

type ProgressWriter interface {
	ResourceEvent(name string, status string, details string)
}

func NewProgressWriter

func NewProgressWriter() ProgressWriter

Jump to

Keyboard shortcuts

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