color

package
v0.0.0-...-857c71f Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Black   = NewColorFunc(30)
	Red     = NewColorFunc(31)
	Green   = NewColorFunc(32)
	Yellow  = NewColorFunc(33)
	Blue    = NewColorFunc(34)
	Magenta = NewColorFunc(35)
	Cyan    = NewColorFunc(36)
	White   = NewColorFunc(37)
)

Functions

func MethodColor

func MethodColor(method string) string

Types

type ColorFunc

type ColorFunc func(string) string

func NewColorFunc

func NewColorFunc(colorCode int) ColorFunc

NewColorFunc creates a new function that prints its input in the specified color.

Jump to

Keyboard shortcuts

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