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)} }