summaryrefslogtreecommitdiff
path: root/vendor/github.com/hashicorp/go-getter/helper/url/url.go
blob: 02497c25433bda0655abe3fd021be3401beabc35 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
package url

import (
	"net/url"
)

// Parse parses rawURL into a URL structure.
// The rawURL may be relative or absolute.
//
// Parse is a wrapper for the Go stdlib net/url Parse function, but returns
// Windows "safe" URLs on Windows platforms.
func Parse(rawURL string) (*url.URL, error) {
	return parse(rawURL)
}