...

Source file src/github.com/go-kit/log/term/colorwriter_others.go

Documentation: github.com/go-kit/log/term

     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  }
    14  

View as plain text