github.com/go-kit/log@v0.2.1/term/colorwriter_others.go (about)

     1  //go:build !windows
     2  // +build !windows
     3  
     4  package term
     5  
     6  import "io"
     7  
     8  // NewColorWriter returns an io.Writer that writes to w and provides cross
     9  // platform support for ANSI color codes. If w is not a terminal it is
    10  // returned unmodified.
    11  func NewColorWriter(w io.Writer) io.Writer {
    12  	return w
    13  }