Skip to content

Instantly share code, notes, and snippets.

@crazyyi
crazyyi / crawl.go
Created September 25, 2017 03:34
A Golang concurrent Web crawler sulotion using channels and mutext. Inspired by the "The Go Programming Language" book.
package main
import (
"fmt"
"log"
"net/http"
"os"
"strings"
"sync"