(components []string, target string)
| 137 | } |
| 138 | |
| 139 | func commonPrefixComponents(components []string, target string) int { |
| 140 | targetComponents := strings.Split(target, "/") |
| 141 | |
| 142 | i := 0 |
| 143 | for ; i < len(components) && i < len(targetComponents); i++ { |
| 144 | if components[i] != targetComponents[i] { |
| 145 | break |
| 146 | } |
| 147 | } |
| 148 | return i |
| 149 | } |
no outgoing calls
searching dependent graphs…