Skip to content

Commit 217e18f

Browse files
authored
Merge pull request #16 from maitredede/ioutil-is-deprecated
feat(go): package ioutil is deprecated
2 parents e40ebd2 + 6ccbf21 commit 217e18f

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)