From 5802410fa4043b5a88d719e1eb037337360f1daa Mon Sep 17 00:00:00 2001 From: "Alexander \"Arav\" Andreev" Date: Sat, 29 Jul 2023 17:59:36 +0400 Subject: [PATCH] GetArticlesMetadata() -> GetArticleMetadata() --- internal/http/web_handlers.go | 2 +- web/articles.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/internal/http/web_handlers.go b/internal/http/web_handlers.go index 0f4a7e6..5e6b8e7 100644 --- a/internal/http/web_handlers.go +++ b/internal/http/web_handlers.go @@ -49,7 +49,7 @@ func (h *Handlers) Privacy(w http.ResponseWriter, r *http.Request) { func (h *Handlers) Stuff(w http.ResponseWriter, r *http.Request) { web.Stuff("/ Stuff", util.GetServiceByHost(r.Host, util.ServiceGit), - util.GetServiceByHost(r.Host, util.ServiceFiles), web.GetArticlesMetadata(), w) + util.GetServiceByHost(r.Host, util.ServiceFiles), web.GetArticleMetadata(), w) } func (h *Handlers) Mindflow(w http.ResponseWriter, r *http.Request) { diff --git a/web/articles.go b/web/articles.go index 7036904..94fa195 100644 --- a/web/articles.go +++ b/web/articles.go @@ -28,8 +28,8 @@ type ArticleMetadata struct { URL string } -// GetArticlesMetadata returns a slice of metadata that is sorted by date -func GetArticlesMetadata() (meta []ArticleMetadata) { +// GetArticleMetadata returns a slice of metadata that is sorted by date +func GetArticleMetadata() (meta []ArticleMetadata) { for urlid, article := range articles { meta = append(meta,