(blockSize int)
| 154 | } |
| 155 | |
| 156 | func blockTransform(blockSize int) func(string) []string { |
| 157 | return func(s string) []string { |
| 158 | var ( |
| 159 | sliceSize = len(s) / blockSize |
| 160 | pathSlice = make([]string, sliceSize) |
| 161 | ) |
| 162 | for i := 0; i < sliceSize; i++ { |
| 163 | from, to := i*blockSize, (i*blockSize)+blockSize |
| 164 | pathSlice[i] = s[from:to] |
| 165 | } |
| 166 | return pathSlice |
| 167 | } |
| 168 | } |
| 169 | |
| 170 | func filterPrefix(in map[string]string, prefix string) map[string]string { |
| 171 | out := map[string]string{} |
no outgoing calls
no test coverage detected
searching dependent graphs…