From 4b38af88a43684089058fb6a73bc3165d233b1ba Mon Sep 17 00:00:00 2001 From: Matthew Rich Date: Thu, 19 Sep 2024 07:59:38 +0000 Subject: [PATCH] add base URL parsing --- internal/identifier/id.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/internal/identifier/id.go b/internal/identifier/id.go index e5888a9..c08bbcf 100644 --- a/internal/identifier/id.go +++ b/internal/identifier/id.go @@ -41,3 +41,6 @@ func (i ID) Extension() (exttype string, fileext string) { return exttype, fileext } +func (i ID) IsEmpty() bool { + return i == "" +}