摘要:
package main import ( "fmt" "strconv" "time" ) var ( maxRoutineNum = 2 ) // 模拟下载页面的方法 func download(url string, ch chan int) { fmt.Println("download f 阅读全文
摘要:
package main import ( "bufio" "fmt" "github.com/antchfx/htmlquery" "io/ioutil" "net/http" "os" "strconv" "time" ) func getResponse(url string ) *http. 阅读全文
摘要:
package main import ( "fmt" "github.com/antchfx/htmlquery" "net/http" "strings" ) func getResponse(url string ) *http.Response { client := &http.Clien 阅读全文