Пример #1
0
func (this *alarmWorker) colorPrintfLn(beep bool, format string, args ...interface{}) {
	msg := fmt.Sprintf(format, args...)
	if beep {
		msg += "\a"
	}
	this.project.Println(als.Colorize(this.conf.colors, msg))
}
Пример #2
0
func (this *alarmWorker) blinkColorPrintfLn(format string, args ...interface{}) {
	msg := fmt.Sprintf(format, args...) + "\a"
	this.project.Println(als.Colorize(append(this.conf.colors, "Blink"), msg))
}