1 2 3 4 5 6 7 8 9 10 11
package internal import "net/url" func MustURL(arg string) *url.URL { u, err := url.Parse(arg) if err != nil { panic(err) } return u }