![QQ截图20190616225524.png](https://static.studygolang.com/190617/706601703b8438899999daf76dbd2374.png)
func GetTest() {
for {
go func() {
res, _ := http.Get("https://www.sina.com.cn")
if res != nil {
res.Body.Close()
}
}()
time.Sleep(100 * time.Microsecond)
}
}
这样也还是会增加内存不释放呢
#4
更多评论