This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var proxyDomainsRu = [ | |
// ".whatismyip.com", | |
".ident.me", | |
".nalog.ru", | |
".gosuslugi.ru", | |
".gu-st.ru", | |
".gov.ru", | |
".tomskenergosbyt.ru", | |
".tomrc.ru", | |
".tom.ru", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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! | |
package main | |
import ( | |
"fmt" |