mirror of
https://github.com/avelino/awesome-go.git
synced 2024-11-07 16:33:40 +00:00
rename + change signature
This commit is contained in:
parent
c6266ba8c9
commit
045416c17d
4
main.go
4
main.go
@ -207,7 +207,7 @@ func extractCategories(doc *goquery.Document) (map[string]Category, error) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
category, err := makeCategoryByID(selector, doc)
|
category, err := extractCategory(doc, selector)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
@ -220,7 +220,7 @@ func extractCategories(doc *goquery.Document) (map[string]Category, error) {
|
|||||||
return categories, nil
|
return categories, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func makeCategoryByID(selector string, doc *goquery.Document) (*Category, error) {
|
func extractCategory(doc *goquery.Document, selector string) (*Category, error) {
|
||||||
var category Category
|
var category Category
|
||||||
var err error
|
var err error
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user