mirror of
https://github.com/avelino/awesome-go.git
synced 2024-11-28 16:56:26 +00:00
fix code style
This commit is contained in:
parent
a1367b83b0
commit
ac3100b466
@ -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")
|
||||
|
Loading…
Reference in New Issue
Block a user