func UnitApplication(unitName string) (string, error) {
	s := validUnit.FindStringSubmatch(unitName)
	if s == nil {
		return "", fmt.Errorf("%q is not a valid unit name", unitName)
	}
	return s[1], nil
}
// UnitApplication returns the name of the application that the unit is
// associated with. It returns an error if unitName is not a valid unit name.
UnitApplication returns the name of the application that the unit is
associated with. It returns an error if unitName is not a valid unit name.
// UnitApplication returns the name of the application that the unit is // associated with . It returns an error if unitName is not a valid unit name .
func UnitApplication(unitName string) (string, error) {
	s := validUnit.FindStringSubmatch(unitName)
	if s == nil {
		return "", fmt.Errorf("%q is not a valid unit name", unitName)
	}
	return s[1], nil
}
func UnitApplication ( unitName string ) ( string , error ) { s := validUnit . FindStringSubmatch ( unitName ) if s == nil { return " " , fmt . Errorf ( " " , unitName ) } return s [ 1 ] , nil }
UnitApplication returns the name of the application that the unit is
associated with.
UnitApplication returns the name of the application that the unit is associated with .