ioutil.ReadFile is deprecated: As of Go 1.16, this function simply calls os.ReadFile

This commit is contained in:
Holger Obermaier
2023-09-05 17:41:08 +02:00
parent 62720dec13
commit 013aa9ec92
2 changed files with 7 additions and 8 deletions

View File

@@ -101,7 +101,7 @@ func getMetricData(lines []string, prefix string, offset int) (int64, error) {
// llitedir := filepath.Join(LUSTRE_SYSFS, "llite")
// devdir := filepath.Join(llitedir, device)
// statsfile := filepath.Join(devdir, "stats")
// buffer, err := ioutil.ReadFile(statsfile)
// buffer, err := os.ReadFile(statsfile)
// if err != nil {
// return make([]string, 0)
// }