(basePath *url.URL, componentPath *url.URL)
| 305 | } |
| 306 | |
| 307 | func (loader *Loader) resolvePath(basePath *url.URL, componentPath *url.URL) *url.URL { |
| 308 | if is_file(componentPath) { |
| 309 | // support absolute paths |
| 310 | if filepath.IsAbs(componentPath.Path) { |
| 311 | return componentPath |
| 312 | } |
| 313 | if loader.JoinFunc != nil { |
| 314 | return loader.JoinFunc(basePath, componentPath) |
| 315 | } |
| 316 | return defaultJoin(basePath, componentPath) |
| 317 | } |
| 318 | return componentPath |
| 319 | } |
| 320 | |
| 321 | func (loader *Loader) resolvePathWithRef(ref string, rootPath *url.URL) (*url.URL, error) { |
| 322 | parsedURL, err := url.Parse(ref) |
no test coverage detected