mirror of
https://github.com/opentofu/opentofu.git
synced 2025-01-24 15:36:26 -06:00
e7bbbfb098
Pull out the urlParse function, which was introduced in config/module, into a helper package.
15 lines
318 B
Go
15 lines
318 B
Go
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)
|
|
}
|