color

package
v0.2.6 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Gray = uint8(iota + 90)
	Red
	Green
	Yellow
	Blue
	Magenta
	Cyan
	White
	Default

	EndColor = "\033[0m"
)

Variables

This section is empty.

Functions

func Color

func Color(str string, color uint8) string

func ColorStart

func ColorStart(color uint8) string

func ColorfulHTML

func ColorfulHTML(str string) string

func ColorfulJson

func ColorfulJson(str string) string

func ColorfulRequestLine

func ColorfulRequestLine(str string) string

func MethodColor

func MethodColor(method string) uint8

func Print

func Print(str string, color uint8)

func PrintRequest

func PrintRequest(str string)

func PrintResponse

func PrintResponse(str string)

func Printf

func Printf(format string, color uint8, params ...interface{})

func Println

func Println(str string, color uint8)

func PrintlnRequest

func PrintlnRequest(str string)

func PrintlnResponse

func PrintlnResponse(str string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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