From 5105ebb8701395f07785ab9368df7e1cdb7863f5 Mon Sep 17 00:00:00 2001 From: Svilen Markov <7613769+svilenmarkov@users.noreply.github.com> Date: Sun, 2 Jun 2024 17:51:07 +0100 Subject: [PATCH] Don't parse unused fields --- internal/feed/lobsters.go | 21 +++++++-------------- 1 file changed, 7 insertions(+), 14 deletions(-) diff --git a/internal/feed/lobsters.go b/internal/feed/lobsters.go index 4c4e005..6e56cd8 100644 --- a/internal/feed/lobsters.go +++ b/internal/feed/lobsters.go @@ -7,20 +7,13 @@ import ( ) type lobstersPostResponseJson struct { - ShortID string `json:"short_id"` - ShortIDURL string `json:"short_id_url"` - CreatedAt string `json:"created_at"` - Title string `json:"title"` - URL string `json:"url"` - Score int `json:"score"` - Flags int `json:"flags"` - CommentCount int `json:"comment_count"` - Description string `json:"description"` - DescriptionPlain string `json:"description_plain"` - CommentsURL string `json:"comments_url"` - SubmitterUser string `json:"submitter_user"` - UserIsAuthor bool `json:"user_is_author"` - Tags []string `json:"tags"` + CreatedAt string `json:"created_at"` + Title string `json:"title"` + URL string `json:"url"` + Score int `json:"score"` + CommentCount int `json:"comment_count"` + CommentsURL string `json:"comments_url"` + Tags []string `json:"tags"` } type lobstersFeedResponseJson []lobstersPostResponseJson