Example #1
0
func (self *ServiceController) RoundColorStatus(status string) *color.Escape {

	if status == "RUNNING" {
		return color.Green(status)
	} else if status == "PENDING" {
		return color.Yellow(status)
	} else if status == "STOPPED" {
		return color.Red(status)
	} else {
		return color.Magenta(status)
	}
}
Example #2
0
func PrintlnYellow(a ...interface{}) (int, error) {
	return Println(color.Yellow(fmt.Sprint(a...)))
}