util

package
v0.19.12 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2026 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ColorBlack   = "black"
	ColorRed     = "red"
	ColorGreen   = "green"
	ColorYellow  = "yellow"
	ColorPurple  = "purple"
	ColorMagenta = "magenta"
	ColorTeal    = "teal"
	ColorWhite   = "white"
)

Variables

View Source
var UseColor = true

Functions

func Color

func Color(color string, args ...interface{}) string

Color returns a color formatted string

func ContainsAny

func ContainsAny(s string, subStrings []string) bool

func MustWritef

func MustWritef(out io.Writer, format string, a ...interface{})

func MustWriteln

func MustWriteln(out io.Writer, s string)

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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