color

package module
v0.0.0-...-8659043 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2024 License: MIT Imports: 3 Imported by: 0

README

Color

Supported colors: black, white, red, green, blue, yellow, magenta, cyan

color.Blue.Print("Blue")
color.Blue.Printf("%s", "Blue")
color.Blue.Println("Blue")
blue := color.Blue.String("Blue")

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Color

type Color int

Color type

const (
	Black Color = iota + 30
	Red
	Green
	Yellow
	Blue
	Magenta
	Cyan
	White
)

Color codes

func (Color) Print

func (c Color) Print(args ...any)

func (Color) Printf

func (c Color) Printf(format string, args ...any)

func (Color) Println

func (c Color) Println(args ...any)

func (Color) String

func (c Color) String(args ...any) string

Jump to

Keyboard shortcuts

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