// Sprintf returns a string str after specifier substitutions
343465
func Sprintf(str string, a ...interface{}) string {
	return fmt.Sprintf(Colorize(str, a...))
}
157531
func Errorf(format string, args ...interface{}) error {
	return &fundamental{
		msg:   fmt.Sprintf(format, args...),
		stack: callers(),
	}
}
466244
func Fatalf(format string, args ...interface{}) error {
	if IsDebug() {
		panic(fmt.Sprintf(format, args...))
	} else {
		return Errorf(format, args...)
	}
}
1289568
func (l Logger) sprintf(format string, a ...interface{}) string {
	m := []string{}
	for _, pfx := range l.prefixStack {
		m = append(m, fmt.Sprintf("%s:", pfx))
	}
	m = append(m, fmt.Sprintf(format, a...))
	return strings.Join(m, " ")
}
445112
func (t *Tee) Printf(format string, args ...interface{}) (int, error) {
	s := fmt.Sprintf(format, args...)
	n, err := os.Stdout.WriteString(s)
	if err != nil {
		return n, err
	}

	if t.f == nil {
		return n, err
	}

	return t.f.WriteString(s)
}
353569
func Errorf(c web.C, rw http.ResponseWriter, code int, message string, args ...interface{}) {
	str := fmt.Sprintf(message, args...)
	ErrorString(c, rw, code, str)
}
1346738
func (f *CustomFormatter) Sprintf(values ...interface{}) string {
	if (!f.ForceColors && f.DisableColors) || len(f.handleColors) == 0 {
		return fmt.Sprintf(f.Template, values...)
	}
	template := f.Template
	for i := len(f.handleColors) - 1; i >= 0; i-- {
		value := values[f.handleColors[i][0]].(string)
		pos := strings.Index(value, "\033")
		if pos < 0 {
			continue
		}

		// Determine width without color sequences.
		width := utf8.RuneCountInString(value)
		for _, p := range _reAnsi.FindAllStringIndex(value[pos:], -1) {
			width -= p[1] - p[0]
		}

		// Pull formatting from template.
		start, end := f.handleColors[i][1], f.handleColors[i][2]
		format := template[start:end]
		template = template[:start] + "%s" + template[end:]

		// Format value while not counting ANSI color codes (yet still including them).
		values[f.handleColors[i][0]] = sprintfColorString(format, value, width)
	}
	return fmt.Sprintf(template, values...)
}
1345890
func TSPrintf(format string, a ...interface{}) {
	fmt.Printf("%s ", ts())
	fmt.Printf(format, a...)
}
937306
func Wrapf(err error, format string, args ...interface{}) error {
	if err == nil {
		return nil
	}
	return &wrapping{
		cause: err,
		msg:   fmt.Sprintf(format, args...),
		stack: callers(),
	}
}
756279
func Errorf(err error, message string, args ...interface{}) *Error {
	msg := fmt.Sprintf(message, args...)
	return newError(err, msg)
}
568651
func Messagef(out Output, id, format string, a ...interface{}) {
	Message(out, id, fmt.Sprintf(format, a...))
}
1109298
func (c *Color) Sprint(a ...interface{}) string {
	return c.wrap(fmt.Sprint(a...))
}
506464
func Errorf(c codes.Code, format string, a ...interface{}) error {
	return Error(c, fmt.Sprintf(format, a...))
}
1077002
func (f *Fpdf) Writef(h float64, fmtStr string, args ...interface{}) {
	f.write(h, sprintf(fmtStr, args...), 0, "")
}
246841
func sprintByteHex(b []byte) string {
	output := "\t"
	for i, b := range b {
		output += fmt.Sprintf("%x", b)
		if (i+1)%16 == 0 {
			output += "\n\n\t"
		} else if (i+1)%4 == 0 {
			output += "  "
		} else {
			output += " "
		}
	}
	output += "\n"

	return output
}
100446
func Printf(format string, v ...interface{}) {
	log.Output(2, fmt.Sprintf(format, v...))
}
1079936
func (c *Color) SprintfFunc() func(format string, a ...interface{}) string {
	return func(format string, a ...interface{}) string {
		return c.wrap(fmt.Sprintf(format, a...))
	}
}