Describe the bug位于Cloudreve/pkg/request/request.go:261的 ioutil.Discard 变量在Go1.16中已简化为 io.Discard ,而本项目的编译建议 Go >= 1.18 ,为保持兼容性,是否换成新的变量命名会更加合理
Cloudreve/pkg/request/request.go:261
ioutil.Discard
io.Discard
Go >= 1.18
Additional context
mi7gmzs61#
同理:Cloudreve/middleware/frontend.go:30ioutil.ReadAll() -> io.ReadAll()
Cloudreve/middleware/frontend.go:30
ioutil.ReadAll() -> io.ReadAll()
1条答案
按热度按时间mi7gmzs61#
同理:
Cloudreve/middleware/frontend.go:30
ioutil.ReadAll() -> io.ReadAll()