term

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2026 License: MIT Imports: 0 Imported by: 0

Documentation

Overview

Package term provides terminal color utilities using ANSI escape codes.

Index

Constants

View Source
const (
	Reset  = "\033[0m"
	Red    = "\033[31m"
	Green  = "\033[32m"
	Yellow = "\033[33m"
	Blue   = "\033[34m"
	Purple = "\033[35m"
	Cyan   = "\033[36m"
	White  = "\033[37m"
	Bold   = "\033[1m"
)

ANSI color codes

Variables

This section is empty.

Functions

func BlueText

func BlueText(s string) string

func BoldText

func BoldText(s string) string

func ColorFunc

func ColorFunc(color string) func(string) string

ColorFunc returns a function that wraps text in the given color.

func CyanText

func CyanText(s string) string

func GreenText

func GreenText(s string) string

func RedText

func RedText(s string) string

Helper functions for common colors

func YellowText

func YellowText(s string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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