Skip to content

Commit

Permalink
rename fn
Browse files Browse the repository at this point in the history
  • Loading branch information
kazhuravlev authored and avelino committed Apr 3, 2023
1 parent 4e7fc8f commit 0d6aab3
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit 0d6aab3

Please sign in to comment.