github.com/remind101/go-getter@v0.0.0-20180809191950-4bda8fa99001/helper/url/url.go (about) 1 package url 2 3 import ( 4 "net/url" 5 ) 6 7 // Parse parses rawURL into a URL structure. 8 // The rawURL may be relative or absolute. 9 // 10 // Parse is a wrapper for the Go stdlib net/url Parse function, but returns 11 // Windows "safe" URLs on Windows platforms. 12 func Parse(rawURL string) (*url.URL, error) { 13 return parse(rawURL) 14 }