colours

package
v1.21.0 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2026 License: Apache-2.0 Imports: 0 Imported by: 0

README

colours

colours exposes ANSI colour escape sequences for terminal text styling.

Variables

Variable Description
Reset Resets terminal styling
Red Red text
Green Green text
Yellow Yellow text
Blue Blue text
Magenta Magenta text
Cyan Cyan text
Gray Gray text
White White text

Example

import "github.com/mt1976/frantic-core/colours"

func main() {
    fmt.Println(colours.Green + "Success!" + colours.Reset)
    fmt.Println(colours.Red + "Error!" + colours.Reset)
}

Documentation

Overview

Package colours exposes ANSI color escape sequences for simple terminal styling.

Index

Constants

This section is empty.

Variables

View Source
var Blue = "\033[34m"
View Source
var Cyan = "\033[36m"
View Source
var Gray = "\033[37m"
View Source
var Green = "\033[32m"
View Source
var Magenta = "\033[35m"
View Source
var Red = "\033[31m"
View Source
var Reset = "\033[0m"
View Source
var White = "\033[97m"
View Source
var Yellow = "\033[33m"

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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