func ErrorString(s string) string {
	if ColorsEnabled() {
		return fmt.Sprintf("%s%s%s%s", colorRed, attrBold, s, codeReset)
	}
	return s
}
ErrorString returns a colorized string representing an error condition.
package sio
import (
	"fmt"
	"io"
	"os"
	"strings"
	"sync"
)
const esc = "\x1b["
const (
	codeReset    = esc + "0m"   
	colorRed     = esc + "31m"  
	colorMagenta = esc + "35m"  
	attrBold     = esc + "1m"   
	attrDim      = esc + "2m"   
	unicodeX     = "\u2718"     
)
type colors struct {
	sync.RWMutex
	enabled bool
}
func (ce *colors) isEnabled() bool {
	ce.RLock()
	defer ce.RUnlock()
	return ce.enabled
}
func (ce *colors) set(flag bool) {
	ce.Lock()
	defer ce.Unlock()
	ce.enabled = flag
}
var ce = &colors{enabled: true}
func EnableColors(flag bool) {
	ce.set(flag)
}
func ColorsEnabled() bool {
	return ce.isEnabled()
}