(strs []string)
| 66 | } |
| 67 | |
| 68 | func UniqueStrings(strs []string) []string { |
| 69 | keys := strset.New() |
| 70 | out := []string{} |
| 71 | for _, elem := range strs { |
| 72 | if !keys.Has(elem) { |
| 73 | keys.Add(elem) |
| 74 | out = append(out, elem) |
| 75 | } |
| 76 | } |
| 77 | return out |
| 78 | } |
| 79 | |
| 80 | func RemoveEmpties(strs []string) []string { |
| 81 | var cleanStrs []string |