style

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2020 License: Apache-2.0 Imports: 3 Imported by: 14

Documentation

Index

Constants

View Source
const (
	HighlightName = "highlight"
	DetailsName   = "details"
	FailName      = "fail"
	NoneName      = "none"
)

Variables

This section is empty.

Functions

func Set

func Set(name string, style *Style)

func SimpleFormat

func SimpleFormat(format string, a ...interface{}) string

Types

type Style

type Style struct {
	Attributes []color.Attribute
}

func Details

func Details() *Style

func Get

func Get(name string) *Style

func Highlight

func Highlight() *Style

func None

func None() *Style

func (*Style) Colorize

func (s *Style) Colorize(format string, a ...interface{}) string

Jump to

Keyboard shortcuts

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