From 657624cbd6d614b2ed9760397f9c759606d8b20f Mon Sep 17 00:00:00 2001 From: Jason Streifling Date: Thu, 17 Oct 2024 16:56:46 +0200 Subject: [PATCH] Small bug fix --- entry.go | 2 +- feed.go | 2 +- id.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/entry.go b/entry.go index f1f3713..e6dde5d 100644 --- a/entry.go +++ b/entry.go @@ -63,7 +63,7 @@ func NewEntry(title string) (*Entry, error) { } return &Entry{ - ID: NewID(), + ID: NewID(NewURN()), Title: text, Updated: NewDate(time.Now()), }, nil diff --git a/feed.go b/feed.go index 005e9f6..8c8bd34 100644 --- a/feed.go +++ b/feed.go @@ -34,7 +34,7 @@ func NewFeed(title string) (*Feed, error) { } return &Feed{ - ID: NewID(), + ID: NewID(NewURN()), Title: text, Updated: NewDate(time.Now()), }, nil diff --git a/id.go b/id.go index 090e74b..c3eb376 100644 --- a/id.go +++ b/id.go @@ -11,7 +11,7 @@ type ID struct { } // NewID creates a new ID. It returns a *ID. -func NewID(id string) *ID { +func NewID(id IRI) *ID { return &ID{URI: IRI(id)} }