diff options
Diffstat (limited to 'internal/url.go')
-rw-r--r-- | internal/url.go | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/internal/url.go b/internal/url.go new file mode 100644 index 0000000..3a8d20a --- /dev/null +++ b/internal/url.go @@ -0,0 +1,11 @@ +package internal + +import "net/url" + +func MustURL(arg string) *url.URL { + u, err := url.Parse(arg) + if err != nil { + panic(err) + } + return u +} |