code: func NewModeAnsiColorWriter(w io.Writer, mode outputMode) io.Writer {
  	if _, ok := w.(*ansiColorWriter); !ok {
  		return &ansiColorWriter{
  			w:    w,
  			mode: mode,
  		}
  	}
  	return w
  }
docs: // NewModeAnsiColorWriter create and initializes a new ansiColorWriter
  // by specifying the outputMode.