From 34c5e361eeefc4fe9fade1eef6e0f784ae4fee7a Mon Sep 17 00:00:00 2001 From: Kirill Zhuravlev Date: Tue, 14 Feb 2023 23:50:57 +0100 Subject: [PATCH] rename function --- main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.go b/main.go index aabfea14..48e31475 100644 --- a/main.go +++ b/main.go @@ -100,7 +100,7 @@ func renderAll() error { }) }) - if err := makeSiteStruct(objs); err != nil { + if err := renderCategories(objs); err != nil { // FIXME: remove all panics return fmt.Errorf("unable to render categories: %w", err) } @@ -143,7 +143,7 @@ func mkdirAll(path string) error { return nil } -func makeSiteStruct(objs map[string]Object) error { +func renderCategories(objs map[string]Object) error { for _, obj := range objs { categoryDir := filepath.Join(outDir, obj.Slug) if err := mkdirAll(categoryDir); err != nil {