Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
xushiwei authored Aug 2, 2024
1 parent 1fb8432 commit c5343d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ How to collect all links of a html page? If you use `hdq`, it is very easy.
```go
import "github.com/goplus/hdq"

func links(url interface{}) []string {
func links(url any) []string {
doc := hdq.Source(url)
return [link for a <- doc.any.a if link := a.href?:""; link != ""]
}
Expand Down

0 comments on commit c5343d3

Please sign in to comment.