fmtutil

package
v0.0.0-...-b04963e Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Colorize

func Colorize(s string, c Color) string

Colorize a string based on given color.

func Pretty

func Pretty(msg, status string) string

func PrettyPrefix

func PrettyPrefix(msg string) string

func PrettyWithColor

func PrettyWithColor(msg, status string, c Color) string

func VersionTmpl

func VersionTmpl(cmd, version, commit, time string) string

Types

type Color

type Color int

Color defines a single SGR Code

const (
	FgBlack Color = iota + 30
	FgRed
	FgGreen
	FgYellow
	FgBlue
	FgMagenta
	FgCyan
	FgWhite
)

Foreground text colors

Jump to

Keyboard shortcuts

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