terminal

package
v0.11.1 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const IndentSpaces = 2

Variables

View Source
var Indent = strings.Repeat(" ", IndentSpaces)
View Source
var Quiet bool = false
View Source
var Stderr io.Writer = os.Stderr
View Source
var Stdout io.Writer = os.Stdout

Functions

func ColorError

func ColorError(name string) string

func ColorHeading

func ColorHeading(name string) string

func ColorName

func ColorName(name string) string

func ColorPath

func ColorPath(name string) string

func ColorTypeName

func ColorTypeName(name string) string

func ColorValue

func ColorValue(name string) string

func ColoredOptions

func ColoredOptions(options []string, colorizer Colorizer) string

func EnableColor

func EnableColor()

func IndentString

func IndentString(indent int) string

func Options

func Options(options []string) string

func PrintIndent

func PrintIndent(indent int)

Types

type Colorizer

type Colorizer = func(name string) string

type TreePrefix

type TreePrefix []bool

func (TreePrefix) Print

func (self TreePrefix) Print(indent int, last bool)

Jump to

Keyboard shortcuts

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