(base, ref string)
| 121 | } |
| 122 | |
| 123 | func resolveURL(base, ref string) string { |
| 124 | b, err := url.Parse(base) |
| 125 | if err != nil { |
| 126 | return ref |
| 127 | } |
| 128 | r, err := url.Parse(ref) |
| 129 | if err != nil { |
| 130 | return ref |
| 131 | } |
| 132 | return b.ResolveReference(r).String() |
| 133 | } |
| 134 | |
| 135 | // originalPosition translates a generated 1-based line and 0-based column into |
| 136 | // the original source: index into Sources/SourcesContent and 0-based line. |
no test coverage detected