diff options
Diffstat (limited to 'Godeps/_workspace/src/github.com/shiena/ansicolor/example_test.go')
-rw-r--r-- | Godeps/_workspace/src/github.com/shiena/ansicolor/example_test.go | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/Godeps/_workspace/src/github.com/shiena/ansicolor/example_test.go b/Godeps/_workspace/src/github.com/shiena/ansicolor/example_test.go deleted file mode 100644 index f2ac67c17..000000000 --- a/Godeps/_workspace/src/github.com/shiena/ansicolor/example_test.go +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright 2014 shiena Authors. All rights reserved. -// Use of this source code is governed by a MIT-style -// license that can be found in the LICENSE file. - -package ansicolor_test - -import ( - "fmt" - "os" - - "github.com/shiena/ansicolor" -) - -func ExampleNewAnsiColorWriter() { - w := ansicolor.NewAnsiColorWriter(os.Stdout) - text := "%sforeground %sbold%s %sbackground%s\n" - fmt.Fprintf(w, text, "\x1b[31m", "\x1b[1m", "\x1b[21m", "\x1b[41;32m", "\x1b[0m") - fmt.Fprintf(w, text, "\x1b[32m", "\x1b[1m", "\x1b[21m", "\x1b[42;31m", "\x1b[0m") - fmt.Fprintf(w, text, "\x1b[33m", "\x1b[1m", "\x1b[21m", "\x1b[43;34m", "\x1b[0m") - fmt.Fprintf(w, text, "\x1b[34m", "\x1b[1m", "\x1b[21m", "\x1b[44;33m", "\x1b[0m") - fmt.Fprintf(w, text, "\x1b[35m", "\x1b[1m", "\x1b[21m", "\x1b[45;36m", "\x1b[0m") - fmt.Fprintf(w, text, "\x1b[36m", "\x1b[1m", "\x1b[21m", "\x1b[46;35m", "\x1b[0m") - fmt.Fprintf(w, text, "\x1b[37m", "\x1b[1m", "\x1b[21m", "\x1b[47;30m", "\x1b[0m") -} |