func getUniqueSlice()

in pkg/domain/mpfResultFilterSort.go [37:47]


func getUniqueSlice(s []string) []string {
	uniqueSlice := make([]string, 0, len(s))
	m := make(map[string]bool)
	for _, val := range s {
		if _, ok := m[val]; !ok {
			m[val] = true
			uniqueSlice = append(uniqueSlice, val)
		}
	}
	return uniqueSlice
}