rename fn

This commit is contained in:
Kirill Zhuravlev 2023-02-20 19:44:07 +01:00 committed by Avelino
parent 6d6f8b3109
commit c9d9bfbf14
No known key found for this signature in database
GPG Key ID: B345B4D52E98180A

View File

@ -49,13 +49,12 @@ var outIndexFile = filepath.Join(outDir, "index.html")
var outSitemapFile = filepath.Join(outDir, "sitemap.xml")
func main() {
if err := renderAll(); err != nil {
if err := buildStaticSite(); err != nil {
panic(err)
}
}
// FIXME: choose a better name
func renderAll() error {
func buildStaticSite() error {
if err := dropCreateDir(outDir); err != nil {
return fmt.Errorf("drop-create out dir: %w", err)
}