mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2024-11-23 12:16:38 +00:00
12 lines
158 B
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
|
||
|
}
|