Skip to content

Instantly share code, notes, and snippets.

View constb's full-sized avatar

Konstantin Bryzgalin constb

  • Antalya, Türkiye
  • 17:17 (UTC +03:00)
View GitHub Profile
@constb
constb / proxy.pac
Last active April 7, 2024 06:59
proxy.pac
var proxyDomainsRu = [
".nalog.ru",
".gosuslugi.ru",
".gu-st.ru",
".gov.ru",
".tomskenergosbyt.ru",
".tomrc.ru",
".tom.ru",
".tomsk.ru",
".sberbank.ru",
@constb
constb / tour_of_go_exercise_web_crawler.go
Created November 13, 2021 11:51
A Tour of Go: Exercise: 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!
package main
import (
"fmt"