Skip to content

Commit

Permalink
feat: Add fields to the Entry struct
Browse files Browse the repository at this point in the history
Added IncludeSourceTitle flag, which will be used for
enabling the includesourcetitle filter.

Added the Source field, which will have the whole Source struct
inverting the Source -> Entry relationship.
  • Loading branch information
panigrc committed Mar 25, 2023
1 parent c057e47 commit 1b6106b
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions internal/goeland/source.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,15 @@ import (

// Entry This represent an entry produced by a source
type Entry struct {
UID string
Title string
Content string
URL string
Date time.Time
IncludeLink bool
ImageURL string
UID string
Title string
Content string
URL string
Date time.Time
IncludeLink bool
IncludeSourceTitle bool
ImageURL string
Source Source
}

// Source ...
Expand Down

0 comments on commit 1b6106b

Please sign in to comment.