Skip to content

Commit

Permalink
Update goguide files.go
Browse files Browse the repository at this point in the history
  • Loading branch information
YuanData committed Sep 26, 2023
1 parent 97b02ca commit d68fdec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions goguide/file/files.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package main

import (
"fmt"
"io/ioutil"
"os"
"path/filepath"
)

Expand All @@ -21,7 +21,7 @@ func reportPanic() {

func scanDirectory(path string) {
fmt.Println(path)
files, err := ioutil.ReadDir(path)
files, err := os.ReadDir(path)
if err != nil {
panic(err)
}
Expand Down

0 comments on commit d68fdec

Please sign in to comment.