colors

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2024 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Blue   = "\x1b[38;2;090;156;248m"
	Green  = "\x1b[38;2;126;192;080m"
	Yellow = "\x1b[38;2;220;165;080m"
	Red    = "\x1b[38;2;228;116;112m"
	Purple = "\x1b[38;2;160;186;250m"
	Gray   = "\x1b[38;2;145;147;152m"
)

日志颜色输出常量

Variables

This section is empty.

Functions

func ToBlue

func ToBlue(str string) string

ToBlue 将字符串转成蓝色

func ToGray

func ToGray(str string) string

ToGray 将字符串转成灰色

func ToGreen

func ToGreen(str string) string

ToGreen 将字符串转成绿色

func ToPurple

func ToPurple(str string) string

ToPurple 将字符串转成紫色

func ToRed

func ToRed(str string) string

ToRed 将字符串转成红色

func ToYellow

func ToYellow(str string) string

ToYellow 将字符串转成黄色

Types

This section is empty.

Jump to

Keyboard shortcuts

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