aboutsummaryrefslogtreecommitdiff
path: root/human.go
diff options
context:
space:
mode:
Diffstat (limited to 'human.go')
-rw-r--r--human.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/human.go b/human.go
index e2ac134..796d970 100644
--- a/human.go
+++ b/human.go
@@ -23,6 +23,7 @@ var (
// URL represents a standard [url.URL] following normalization rules of human.json.
type URL url.URL
+// NewURL creates a new [URL].
func NewURL(s string) (*URL, error) {
raw, err := url.Parse(s)
if err != nil {