(u *url.URL)
| 244 | } |
| 245 | |
| 246 | func splitURLOnDoubleSlash(u *url.URL) (string, string) { |
| 247 | x := strings.Split(u.Path, "//") |
| 248 | switch len(x) { |
| 249 | case 0: |
| 250 | return "", "" |
| 251 | case 1: |
| 252 | return x[0], "" |
| 253 | default: |
| 254 | return x[0], x[1] |
| 255 | } |
| 256 | } |
no outgoing calls
no test coverage detected
searching dependent graphs…