mirror of
https://github.com/avelino/awesome-go.git
synced 2024-11-07 16:33:40 +00:00
fix code style
This commit is contained in:
parent
a1367b83b0
commit
ac3100b466
@ -47,7 +47,7 @@ func main() {
|
|||||||
if !exists {
|
if !exists {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
obj := makeObjById(selector, query.Find("body"))
|
obj := makeObjByID(selector, query.Find("body"))
|
||||||
if obj == nil {
|
if obj == nil {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
@ -81,7 +81,7 @@ func makeSitemap(objs map[string]*Object) {
|
|||||||
t.Execute(f, objs)
|
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) {
|
s.Find(selector).Each(func(_ int, s *goquery.Selection) {
|
||||||
desc := s.NextFiltered("p")
|
desc := s.NextFiltered("p")
|
||||||
ul := s.NextFilteredUntil("ul", "h2")
|
ul := s.NextFilteredUntil("ul", "h2")
|
||||||
|
Loading…
Reference in New Issue
Block a user