fix code style

This commit is contained in:
Benjamin Schoch 2022-08-30 19:26:14 +02:00 committed by Avelino
parent a1367b83b0
commit ac3100b466

View File

@ -47,7 +47,7 @@ func main() {
if !exists {
return
}
obj := makeObjById(selector, query.Find("body"))
obj := makeObjByID(selector, query.Find("body"))
if obj == nil {
return
}
@ -81,7 +81,7 @@ func makeSitemap(objs map[string]*Object) {
t.Execute(f, objs)
}
func makeObjById(selector string, s *goquery.Selection) (obj *Object) {
func makeObjByID(selector string, s *goquery.Selection) (obj *Object) {
s.Find(selector).Each(func(_ int, s *goquery.Selection) {
desc := s.NextFiltered("p")
ul := s.NextFilteredUntil("ul", "h2")