mirror of
https://github.com/avelino/awesome-go.git
synced 2024-11-28 16:56:26 +00:00
rename fn
This commit is contained in:
parent
6d6f8b3109
commit
c9d9bfbf14
5
main.go
5
main.go
@ -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)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user