(str string, spi ...string)
| 115 | } |
| 116 | |
| 117 | func SplitStr(str string, spi ...string) []string { |
| 118 | lists := []string{str} |
| 119 | var results []string |
| 120 | for _, s := range spi { |
| 121 | results = []string{} |
| 122 | for _, list := range lists { |
| 123 | results = append(results, strings.Split(list, s)...) |
| 124 | } |
| 125 | lists = results |
| 126 | } |
| 127 | return results |
| 128 | } |
| 129 | |
| 130 | func UniqueUints(items []uint) []uint { |
| 131 | result := make([]uint, 0, len(items)) |
no outgoing calls
no test coverage detected