Merge pull request #38 from lexandro/master

Fixing variable names in ansicolor to enable windows build
Этот коммит содержится в:
Gediminas Morkevicius 2016-06-11 10:12:25 +03:00 коммит произвёл GitHub
родитель da70b4d904 89c17f1376
коммит f16addd9c9

Просмотреть файл

@ -15,8 +15,8 @@ type outputMode int
// color escape sequence. // color escape sequence.
const ( const (
_ outputMode = iota _ outputMode = iota
discardNonColorEscSeq DiscardNonColorEscSeq
outputNonColorEscSeq OutputNonColorEscSeq
) )
// NewAnsiColorWriter creates and initializes a new ansiColorWriter // NewAnsiColorWriter creates and initializes a new ansiColorWriter
@ -25,7 +25,7 @@ const (
// colors of the text by the escape sequence. // colors of the text by the escape sequence.
// In the console of other systems, which writes to w all text. // In the console of other systems, which writes to w all text.
func createAnsiColorWriter(w io.Writer) io.Writer { func createAnsiColorWriter(w io.Writer) io.Writer {
return createModeAnsiColorWriter(w, discardNonColorEscSeq) return createModeAnsiColorWriter(w, DiscardNonColorEscSeq)
} }
// NewModeAnsiColorWriter create and initializes a new ansiColorWriter // NewModeAnsiColorWriter create and initializes a new ansiColorWriter