aboutsummaryrefslogtreecommitdiffsponsor
path: root/internal/url.go
blob: 3a8d20aa59846dacfe85081f2233b3cffc6aa777 (plain)
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
}