format

package
v0.17.0 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2019 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Colorize

func Colorize(color Color, s string) string

Colorize returns the passed string with the passed color

Types

type Color

type Color string

Color represents a color code

const (
	// Red for errors
	Red Color = "31"
	// Yellow for warnings
	Yellow Color = "33"
)

Jump to

Keyboard shortcuts

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