Skip to content

Commit 6ccbf21

Browse files
committed
feat(go): package ioutil is deprecated
1 parent e40ebd2 commit 6ccbf21

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

list.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ package evdev
22

33
import (
44
"fmt"
5-
"io/ioutil"
65
"os"
76
)
87

@@ -19,7 +18,7 @@ func ListDevicePaths() ([]InputPath, error) {
1918

2019
basePath := "/dev/input"
2120

22-
files, err := ioutil.ReadDir(basePath)
21+
files, err := os.ReadDir(basePath)
2322
if err != nil {
2423
return list, err
2524
}

0 commit comments

Comments
 (0)