From 879cc25421c66a959ab801f0937b4264a461fc7e Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Thu, 27 Jun 2024 13:34:21 +0200 Subject: use pointer to config in builder & templates --- internal/sitemap/sitemap.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'internal/sitemap') diff --git a/internal/sitemap/sitemap.go b/internal/sitemap/sitemap.go index a38e277..a45ebd9 100644 --- a/internal/sitemap/sitemap.go +++ b/internal/sitemap/sitemap.go @@ -13,9 +13,9 @@ type Sitemap struct { Sitemap *sitemap.Sitemap } -func New(cfg config.Config) *Sitemap { +func New(cfg *config.Config) *Sitemap { return &Sitemap{ - config: &cfg, + config: cfg, Sitemap: sitemap.New(), } } -- cgit 1.4.1