// urlParse wraps url.Parse to add a scheme if none-exists.
// https://github.com/golang/go/issues/12585
urlParse wraps url.Parse to add a scheme if none-exists.
// urlParse wraps url . Parse to add a scheme if none - exists . // https : // github . com / golang / go / issues / 12585
func urlParse(uri string) (*url.URL, error) {
	if !strings.Contains(uri, "://") {
		uri = fmt.Sprintf("https://%s", uri)
	}
	return url.ParseRequestURI(uri)
}
func urlParse ( uri string ) ( * url . URL , error ) { if ! strings . Contains ( uri , " " ) { uri = fmt . Sprintf ( " " , uri ) } return url . ParseRequestURI ( uri ) }
urlParse wraps url.Parse to add a scheme if none-exists.
urlParse wraps url . Parse to add a scheme if none - exists .