ImportPath 引入路径
()
| 291 | |
| 292 | // ImportPath 引入路径 |
| 293 | func (dep PomDependency) ImportPath() []PomDependency { |
| 294 | paths := []PomDependency{dep} |
| 295 | pom := dep.Define |
| 296 | pomset := map[*Pom]bool{} |
| 297 | for pom != nil { |
| 298 | if pomset[pom] { |
| 299 | break |
| 300 | } |
| 301 | pomset[pom] = true |
| 302 | paths = append(paths, pom.PomDependency) |
| 303 | pom = pom.Define |
| 304 | } |
| 305 | return paths |
| 306 | } |
| 307 | |
| 308 | // ImportPathStack 引入路径栈 |
| 309 | func (dep PomDependency) ImportPathStack() string { |