diff options
| author | TreyBastian <trey.bastian@gmail.com> | 2015-05-11 19:59:22 +0100 |
|---|---|---|
| committer | TreyBastian <trey.bastian@gmail.com> | 2015-05-11 19:59:22 +0100 |
| commit | d62b22d6d09a6e2512bb701421a0d17cd193ebad (patch) | |
| tree | 4100d411de445a8e84a600b6df72243b59f19878 | |
| parent | 67fd1dfc1117219862c4cc90a3d97ffbf71bb5c3 (diff) | |
| parent | 2de721dec4cfc2c524c59866a368a843b6cc6c95 (diff) | |
Merge remote-tracking branch 'origin/master'
Conflicts:
.travis.yml
| -rw-r--r-- | .travis.yml | 8 | ||||
| -rw-r--r-- | README.md | 16 |
2 files changed, 19 insertions, 5 deletions
diff --git a/.travis.yml b/.travis.yml index a7ab854..8037bc8 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,11 +1,11 @@ language: go go: - -tip + -tip before_install: - go get github.com/modocache/gover - go get github.com/mattn/goveralls - go get golang.org/x/tools/cmd/cover script: - - go test -v -coverprofile=colourize.coverprofile ./colourize - - $HOME/gopath/bin/gover - - $HOME/gopath/bin/goveralls -coverprofile=gover.coverprofile -service=travis-ci
\ No newline at end of file + - go test -v -coverprofile=colourize.coverprofile ./colourize + - $HOME/gopath/bin/gover + - $HOME/gopath/bin/goveralls -coverprofile=gover.coverprofile -service=travis-ci @@ -1,4 +1,18 @@ # colourize An ANSI colour terminal package for Go -[](https://godoc.org/github.com/TreyBastian/colourize) +[](https://godoc.org/github.com/TreyBastian/colourize) [](https://travis-ci.org/TreyBastian/colourize) [](https://coveralls.io/r/TreyBastian/colourize) + +# Usage + + package main + import ( + c "github.com/TreyBastian/colourize" + "fmt" + ) + + func main() { + fmt.Println(colourize("Hello World!", Green, Whitebg, Bold) + } + +Supports all ANSI colours and emphasis. Not compatible with Windows systems. |
