ansi

package
v4.1.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2017 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package ansi provides trivial ANSI formatting of strings.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Black

func Black(s string) string

Black returns the string s with black foreground color.

func Blue

func Blue(s string) string

Blue returns the string s with blue foreground color.

func Bold

func Bold(s string) string

Bold returns the string s with bold formatting.

func Cyan

func Cyan(s string) string

Cyan returns the string s with cyan foreground color.

func Disable

func Disable()

Disable disables ANSI formatting, effectively turning all formatting functions into the identity transform.

func Faint

func Faint(s string) string

Faint returns the string s with faint formatting.

func Green

func Green(s string) string

Green returns the string s with green foreground color.

func Magenta

func Magenta(s string) string

Magenta returns the string s with magenta foreground color.

func Red

func Red(s string) string

Red returns the string s with red foreground color.

func Strlen

func Strlen(s string) int

Strlen returns the length of a string, as it will be displayed, in runes.

func Underline

func Underline(s string) string

Underline returns the string s with underlined formatting.

func Yellow

func Yellow(s string) string

Yellow returns the string s with yellow foreground color.

Types

This section is empty.

Jump to

Keyboard shortcuts

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