styling

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2018 License: BSD-3-Clause Imports: 1 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Style

type Style interface {
	// Prompt is for user queries.
	Prompt() StyleFunc
	// Error is for error indications.
	Error() StyleFunc
	// Status is for general status messages.
	Status() StyleFunc
	// Added is for added/modified data.
	Added() StyleFunc
	// Removed is for lost/removed data.
	Removed() StyleFunc
}

A Style provides a collection of style functions.

func NullStyle

func NullStyle() Style

NullStyle returns a Style that does no styling at all

type StyleFunc

type StyleFunc func(...interface{}) string

A StyleFunc wraps the provided data and produces a string in the given style.

Jump to

Keyboard shortcuts

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