(u *url.URL)
| 22 | ) |
| 23 | |
| 24 | func isURLRelative(u *url.URL) bool { |
| 25 | return (u.Scheme == "" || u.Scheme == "file") && (u.Host != "" || u.Host == "" && (u.Path == "" || u.Path[0:1] != "/")) |
| 26 | } |
| 27 | |
| 28 | func fixRelativeURL(rawurl string, dir string) (string, error) { |
| 29 | if rawurl == "" { |
no outgoing calls