From dc33e720e781317bdf2c4cdee198ac26ceecda82 Mon Sep 17 00:00:00 2001 From: Kirill Zhuravlev Date: Tue, 14 Feb 2023 18:58:36 +0100 Subject: [PATCH] change comments --- main.go | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/main.go b/main.go index a2a3a173..a92e1eda 100644 --- a/main.go +++ b/main.go @@ -26,25 +26,23 @@ type Object struct { Items []Link } -// Source +// Source files const readmePath = "README.md" -// NOTE: this files should be copied as is to outDir directory +// This files should be copied 'as is' to outDir directory var staticFiles = []string{ "tmpl/assets", "tmpl/_redirects", "tmpl/robots.txt", } -// Templates +// Template files const tplPath = "tmpl/tmpl.html" const tmplCategory = "tmpl/cat-tmpl.html" const tmplSitemap = "tmpl/sitemap-tmpl.xml" -// Output - -// NOTE: trailing slash is required -const outDir = "out/" +// Output files +const outDir = "out/" // NOTE: trailing slash is required var outIndexFile = filepath.Join(outDir, "index.html") var outSitemapFile = filepath.Join(outDir, "sitemap.xml")