func StrUnique(vs []string) []string {
	distinctValues := make(map[string]struct{})
	var ret []string
	for _, v := range vs {
		if _, exists := distinctValues[v]; !exists {
			distinctValues[v] = struct{}{}
			ret = append(ret, v)
		}
	}
	return ret
}
// StrUnique returns the vs string slice with non-unique values removed.
StrUnique returns the vs string slice with non-unique values removed.
// StrUnique returns the vs string slice with non - unique values removed .
func StrUnique(vs []string) []string {
	distinctValues := make(map[string]struct{})
	var ret []string
	for _, v := range vs {
		if _, exists := distinctValues[v]; !exists {
			distinctValues[v] = struct{}{}
			ret = append(ret, v)
		}
	}
	return ret
}
func StrUnique ( vs [ ] string ) [ ] string { distinctValues := make ( map [ string ] struct { } ) var ret [ ] string for _ , v := range vs { if _ , exists := distinctValues [ v ] ; ! exists { distinctValues [ v ] = struct { } { } ret = append ( ret , v ) } } return ret }
StrUnique returns the vs string slice with non-unique values removed.
StrUnique returns the vs string slice with non - unique values removed .