Parsing a Windows filepath without scheme yields an invalid url:
Examples: https://play.golang.org/p/QuBFiU_1b1
# Working when prefixed with file:///
file:///c:\foo\bar
Scheme: file
Host:
Path: /c:\foo\bar
file:///c:/foo/bar
Scheme: file
Host:
Path: /c:/foo/bar
# Not working with only 2 leading slashes
file://c:\foo\bar
Scheme: file
Host: c:\foo\bar
Path:
# Host containing colon but without port should not be valid?
file://c:/foo/bar
Scheme: file
Host: c:
Path: /foo/bar
# Expected: Scheme: empty, Path: input
c:\foo\bar
Scheme: c
Host:
Path:
# Expected: Scheme: empty, Path: input
c:/foo/bar
Scheme: c
Host:
Path: /foo/bar
The middle two tests aren't real bugs though, I guess.