go 1.6 废弃 io/ioutil 包后的替换函数
io/ioutil 替代
ioutil.ReadAll -> io.ReadAll ioutil.ReadFile -> os.ReadFile ioutil.ReadDir -> os.ReadDir // others ioutil.NopCloser -> io.NopCloser ioutil.ReadDir -> os.ReadDir ioutil.TempDir -> os.MkdirTemp ioutil.TempFile -> os.CreateTemp ioutil.WriteFile -> os.WriteFile
标签:1.6,包后,ioutil,ReadDir,io,os From: https://www.cnblogs.com/runliuv/p/17825687.html