mirror of
https://github.com/avelino/awesome-go.git
synced 2024-11-07 16:33:40 +00:00
rename function
This commit is contained in:
parent
258c4fb4d6
commit
34c5e361ee
4
main.go
4
main.go
@ -100,7 +100,7 @@ func renderAll() error {
|
||||
})
|
||||
})
|
||||
|
||||
if err := makeSiteStruct(objs); err != nil {
|
||||
if err := renderCategories(objs); err != nil {
|
||||
// FIXME: remove all panics
|
||||
return fmt.Errorf("unable to render categories: %w", err)
|
||||
}
|
||||
@ -143,7 +143,7 @@ func mkdirAll(path string) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func makeSiteStruct(objs map[string]Object) error {
|
||||
func renderCategories(objs map[string]Object) error {
|
||||
for _, obj := range objs {
|
||||
categoryDir := filepath.Join(outDir, obj.Slug)
|
||||
if err := mkdirAll(categoryDir); err != nil {
|
||||
|
Loading…
Reference in New Issue
Block a user