forked from ebhomengo/niki
1
0
Fork 0
niki/vendor/github.com/go-openapi/spec/url_go19.go

12 lines
158 B
Go
Raw Normal View History

2024-05-14 13:07:09 +00:00
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
}