MCPcopy
hub / github.com/pingc0y/URLFinder / AppendEndUrl

Function AppendEndUrl

crawler/run.go:329–339  ·  view source on GitHub ↗
(url string)

Source from the content-addressed store, hash-verified

327}
328
329func AppendEndUrl(url string) {
330 config.Lock.Lock()
331 defer config.Lock.Unlock()
332 for _, eachItem := range result.EndUrl {
333 if eachItem == url {
334 return
335 }
336 }
337 result.EndUrl = append(result.EndUrl, url)
338
339}
340
341func GetEndUrl(url string) bool {
342 config.Lock.Lock()

Callers 1

SpiderFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected