niki/vendor/github.com/go-openapi/spec/url_go19.go

12 lines
158 B
Go

package spec
import "net/url"
func parseURL(s string) (*url.URL, error) {
u, err := url.Parse(s)
if err == nil {
u.OmitHost = false
}
return u, err
}