aboutsummaryrefslogtreecommitdiff
path: root/README.md
blob: e09ca6855d692288685590867d3ecc6b29356d9d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# colourize
[![GoDoc](https://godoc.org/tangled.org/treybastian.com/colourize?status.svg)](https://godoc.org/github.com/TreyBastian/colourize) [![Build Status](https://travis-ci.org/TreyBastian/colourize.svg?branch=master)](https://travis-ci.org/TreyBastian/colourize) [![Coverage Status](https://coveralls.io/repos/TreyBastian/colourize/badge.svg?branch=master)](https://coveralls.io/r/TreyBastian/colourize?branch=master) [![Go Report
Card](https://goreportcard.com/badge/tangled.org/treybastian.com/colourize)](https://goreportcard.com/report/github.com/TreyBastian/colourize)

An ANSI colour terminal package for Go.
Supports all ANSI colours and emphasis. Not compatible with Windows systems.

This project is feature complete for what I created it for 10 years ago.

Feel free to submit patches to patches@treybastian.com

# Installation

     go get tangled.org/trebastian.com/colourize 

# Usage

    package main
    import (
        c "tangled.org/trebastian.com/colourize"
        "fmt"
    )
    
    func main() {
      fmt.Println(c.Colourize("Hello World!", c.Green, c.Whitebg, c.Bold))
    }