mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2024-11-30 15:42:46 +00:00
15 lines
194 B
Go
15 lines
194 B
Go
|
//go:build go1.19
|
||
|
// +build go1.19
|
||
|
|
||
|
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
|
||
|
}
|