mirror of
https://github.com/avelino/awesome-go.git
synced 2024-11-07 16:33:40 +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")
|
var outSitemapFile = filepath.Join(outDir, "sitemap.xml")
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
if err := renderAll(); err != nil {
|
if err := buildStaticSite(); err != nil {
|
||||||
panic(err)
|
panic(err)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// FIXME: choose a better name
|
func buildStaticSite() error {
|
||||||
func renderAll() error {
|
|
||||||
if err := dropCreateDir(outDir); err != nil {
|
if err := dropCreateDir(outDir); err != nil {
|
||||||
return fmt.Errorf("drop-create out dir: %w", err)
|
return fmt.Errorf("drop-create out dir: %w", err)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user