colorful

package
v1.0.7 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2023 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Blue

func Blue(data []byte) []byte

Blue apply blue color to the data

func Cyan

func Cyan(data []byte) []byte

Cyan apply cyan color to the data

func Gray

func Gray(data []byte) []byte

Gray apply gray color to the data

func Green

func Green(data []byte) []byte

Green apply green color to the data

func Orange

func Orange(data []byte) []byte

Orange apply orange color to the data

func Purple

func Purple(data []byte) []byte

Purple apply purple color to the data

func Red

func Red(data []byte) []byte

Red apply red color to the data

Types

type ColorBuffer

type ColorBuffer struct {
	buffer.Buffer
}

ColorBuffer add color option to buffer append

func (*ColorBuffer) Blue

func (cb *ColorBuffer) Blue()

Blue apply blue color to the data

func (*ColorBuffer) Cyan

func (cb *ColorBuffer) Cyan()

Cyan apply cyan color to the data

func (*ColorBuffer) Gray

func (cb *ColorBuffer) Gray()

Gray apply gray color to the data

func (*ColorBuffer) Green

func (cb *ColorBuffer) Green()

Green apply green color to the data

func (*ColorBuffer) Off

func (cb *ColorBuffer) Off()

Off apply no color to the data

func (*ColorBuffer) Orange

func (cb *ColorBuffer) Orange()

Orange apply orange color to the data

func (*ColorBuffer) Purple

func (cb *ColorBuffer) Purple()

Purple apply purple color to the data

func (*ColorBuffer) Red

func (cb *ColorBuffer) Red()

Red apply red color to the data

Jump to

Keyboard shortcuts

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