Skip to content

Latest commit

 

History

History

styles

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

ansi-styles

ANSI escape codes for styling strings in the terminal

Usage

import "fmt"
import "github.com/go-libs/ansi/styles"

fmt.Println(styles.Red.Open, "Hello world!", styles.Red.Close)
fmt.Println(styles.Green.Print("Go Go Go!"))
fmt.Println(styles.BgRed.Print(styles.White.Print("2014, 10 17")))