mirror of
https://github.com/blindlobstar/go-interview-problems
synced 2025-04-28 20:55:15 +00:00
14 lines
402 B
Markdown
14 lines
402 B
Markdown
## Web Crawler
|
|
|
|
In this exercise you'll use Go's concurrency features to parallelize a web crawler.
|
|
|
|
Modify the `Crawl` function to fetch URLs in parallel without fetching the same URL twice.
|
|
|
|
~Hint:~ you can keep a cache of the URLs that have been fetched on a map, but maps alone are not safe for concurrent use!
|
|
|
|
## Tags
|
|
`Concurrency`
|
|
|
|
## Source
|
|
- [A Tour of Go](https://go.dev/tour/concurrency/10)
|