From 2c077d39ce47ea88c35b76b443aceb9e0bf67a7b Mon Sep 17 00:00:00 2001 From: demo Date: Thu, 11 Jun 2026 22:12:03 -0400 Subject: style: rename findURLs to extractURLs "Find" strongly implies an HTTP GET request, so I decided to change the name. --- findurls.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'findurls.go') diff --git a/findurls.go b/findurls.go index 8f84936..000e482 100644 --- a/findurls.go +++ b/findurls.go @@ -8,12 +8,12 @@ import ( "golang.org/x/net/html/atom" ) -// findURLs combs htmlDoc for anchor-tag URLs. The refURL parameter is +// extractURLs combs htmlDoc for anchor-tag URLs. The refURL parameter is // used to resolve each found URL into an absolute URL, and also // ensures that we don't crawl outside refURL's parent Web domain. // // Return the slice of URLs. -func findURLs(refURL url.URL, htmlDoc *html.Node) []url.URL { +func extractURLs(refURL url.URL, htmlDoc *html.Node) []url.URL { // Used for collecting all the URLs we find. var rawURLs []url.URL -- cgit v1.2.3