github.com/Secbyte/godog@v0.7.14-0.20200116175429-d8f0aeeb70cf/colors/ansi_others.go (about) 1 // Copyright 2014 shiena Authors. All rights reserved. 2 // Use of this source code is governed by a MIT-style 3 // license that can be found in the LICENSE file. 4 5 // +build !windows 6 7 package colors 8 9 import "io" 10 11 type ansiColorWriter struct { 12 w io.Writer 13 mode outputMode 14 } 15 16 func (cw *ansiColorWriter) Write(p []byte) (int, error) { 17 return cw.w.Write(p) 18 }