func Fatalf(t *testing.T, format string, args ...interface{}) {
	t.Fatal(Scolorf(FatalColorSyntaxCode, format, args...))
}
Fatalf calls Fatal on t with a colorized message
package forest
import (
	"fmt"
	"os"
	"testing"
	"github.com/wsxiaoys/terminal/color"
)
var TerminalColorsEnabled = true
func init() {
	TerminalColorsEnabled = os.Getenv("TERMCOLORS") != "false"
}
var ErrorColorSyntaxCode = "@{wR}"
var FatalColorSyntaxCode = "@{wR}"
func serrorf(format string, args ...interface{}) string {
	return Scolorf(ErrorColorSyntaxCode, format, args...)
}
func sfatalf(format string, args ...interface{}) string {
	return Scolorf(FatalColorSyntaxCode, format, args...)
}
func Scolorf(syntaxCode string, format string, args ...interface{}) string {
	plainFormatted := fmt.Sprintf(format, args...)
	if len(syntaxCode) > 0 && TerminalColorsEnabled {
		return color.Sprintf(syntaxCode+"\n %s", plainFormatted)
	}
	return plainFormatted
}
func Errorf(t *testing.T, format string, args ...interface{}) {
	t.Error(Scolorf(ErrorColorSyntaxCode, format, args...))
}