摘要:
io.Reader 解析 - 简书 https://www.jianshu.com/p/03db37ca3249 简介 io.Reader 是一个 Interface 类型,功能非常强大,在任何需要读的地方我们都尽量使用它。先来看下它的原型: type Reader interface { Read 阅读全文
posted @ 2022-01-26 19:18
papering
阅读(88)
评论(0)
推荐(0)
摘要:
a 阅读全文
posted @ 2022-01-26 18:51
papering
阅读(35)
评论(0)
推荐(0)
摘要:
1、 并发下载图片的goroutine数为CPU数加1 package goroutin import ( "fmt" "io" "net/http" "os" "sync" ) func dlImg(threadPool, batchNum int) { var wg sync.WaitGroup 阅读全文
posted @ 2022-01-26 11:38
papering
阅读(96)
评论(0)
推荐(0)

浙公网安备 33010602011771号