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) } }
func PrintlnYellow(a ...interface{}) (int, error) { return Println(color.Yellow(fmt.Sprint(a...))) }