func AddUniqueStringtoSlice(names []string, name string) []string {

	if len(names) == 0 {
		names = append(names, name)
		return names
	}
	shouldAppend := false
	for _, n := range names {
		if strings.Compare(n, name) == 0 {
			shouldAppend = false
			break
		} else {
			shouldAppend = true
		}
	}
	if shouldAppend {
		names = append(names, name)
	}
	return names
}
// AddUniqueStringtoSlice ensures there are no repeated devices added to a slice
AddUniqueStringtoSlice ensures there are no repeated devices added to a slice
// AddUniqueStringtoSlice ensures there are no repeated devices added to a slice
func AddUniqueStringtoSlice(names []string, name string) []string {
	if len(names) == 0 {
		names = append(names, name)
		return names
	}
	shouldAppend := false
	for _, n := range names {
		if strings.Compare(n, name) == 0 {
			shouldAppend = false
			break
		} else {
			shouldAppend = true
		}
	}
	if shouldAppend {
		names = append(names, name)
	}
	return names
}
func AddUniqueStringtoSlice ( names [ ] string , name string ) [ ] string { if len ( names ) == 0 { names = append ( names , name ) return names } shouldAppend := false for _ , n := range names { if strings . Compare ( n , name ) == 0 { shouldAppend = false break } else { shouldAppend = true } } if shouldAppend { names = append ( names , name ) } return names }
AddUniqueStringtoSlice ensures there are no repeated devices added to a slice
AddUniqueStringtoSlice ensures there are no repeated devices added to a slice