func (c *Color) Sprintln(a ...interface{}) string {
	return c.wrap(fmt.Sprintln(a...))
}
Sprintln is just like Println, but returns a string instead of printing it.
package color
import (
	"fmt"
	"io"
	"os"
	"strconv"
	"strings"
	"sync"
	"github.com/mattn/go-colorable"
	"github.com/mattn/go-isatty"
)
var (
	NoColor = os.Getenv("TERM") == "dumb" ||
		(!isatty.IsTerminal(os.Stdout.Fd()) && !isatty.IsCygwinTerminal(os.Stdout.Fd()))
	Output = colorable.NewColorableStdout()
	colorsCache   = make(map[Attribute]*Color)
	colorsCacheMu sync.Mutex  
)
type Color struct {
	params  []Attribute
	noColor *bool
}
type Attribute int
const escape = "\x1b"
const (
	Reset Attribute = iota
	Bold
	Faint
	Italic
	Underline
	BlinkSlow
	BlinkRapid
	ReverseVideo
	Concealed
	CrossedOut
)
const (
	FgBlack Attribute = iota + 30
	FgRed
	FgGreen
	FgYellow
	FgBlue
	FgMagenta
	FgCyan
	FgWhite
)
const (
	FgHiBlack Attribute = iota + 90
	FgHiRed
	FgHiGreen
	FgHiYellow
	FgHiBlue
	FgHiMagenta
	FgHiCyan
	FgHiWhite
)
const (
	BgBlack Attribute = iota + 40
	BgRed
	BgGreen
	BgYellow
	BgBlue
	BgMagenta
	BgCyan
	BgWhite
)
const (
	BgHiBlack Attribute = iota + 100
	BgHiRed
	BgHiGreen
	BgHiYellow
	BgHiBlue
	BgHiMagenta
	BgHiCyan
	BgHiWhite
)
func New(value ...Attribute) *Color {
	c := &Color{params: make([]Attribute, 0)}
	c.Add(value...)
	return c
}
func Set(p ...Attribute) *Color {
	c := New(p...)
	c.Set()
	return c
}
func Unset() {
	if NoColor {
		return
	}
	fmt.Fprintf(Output, "%s[%dm", escape, Reset)
}
func (c *Color) Set() *Color {
	if c.isNoColorSet() {
		return c
	}
	fmt.Fprintf(Output, c.format())
	return c
}
func (c *Color) unset() {
	if c.isNoColorSet() {
		return
	}
	Unset()
}
func (c *Color) setWriter(w io.Writer) *Color {
	if c.isNoColorSet() {
		return c
	}
	fmt.Fprintf(w, c.format())
	return c
}
func (c *Color) unsetWriter(w io.Writer) {
	if c.isNoColorSet() {
		return
	}
	if NoColor {
		return
	}
	fmt.Fprintf(w, "%s[%dm", escape, Reset)
}
func (c *Color) Add(value ...Attribute) *Color {
	c.params = append(c.params, value...)
	return c
}
func (c *Color) prepend(value Attribute) {
	c.params = append(c.params, 0)
	copy(c.params[1:], c.params[0:])
	c.params[0] = value
}
func (c *Color) Fprint(w io.Writer, a ...interface{}) (n int, err error) {
	c.setWriter(w)
	defer c.unsetWriter(w)
	return fmt.Fprint(w, a...)
}
func (c *Color) Print(a ...interface{}) (n int, err error) {
	c.Set()
	defer c.unset()
	return fmt.Fprint(Output, a...)
}
func (c *Color) Fprintf(w io.Writer, format string, a ...interface{}) (n int, err error) {
	c.setWriter(w)
	defer c.unsetWriter(w)
	return fmt.Fprintf(w, format, a...)
}
func (c *Color) Printf(format string, a ...interface{}) (n int, err error) {
	c.Set()
	defer c.unset()
	return fmt.Fprintf(Output, format, a...)
}
func (c *Color) Fprintln(w io.Writer, a ...interface{}) (n int, err error) {
	c.setWriter(w)
	defer c.unsetWriter(w)
	return fmt.Fprintln(w, a...)
}
func (c *Color) Println(a ...interface{}) (n int, err error) {
	c.Set()
	defer c.unset()
	return fmt.Fprintln(Output, a...)
}
func (c *Color) Sprint(a ...interface{}) string {
	return c.wrap(fmt.Sprint(a...))
}